How to use datasource jndi in Weblogic instead of add a DB data source
Hi allversion: 11.1.1.4
I'm trying to understand how in my ADF applications I use a datasource jndi existing on our servers weblogic instead of having to bury the source database db in my adf applications. As SOA, I would refer to the DB directly in the design so that I can pull in entities and build display objects, but when I deploy I want it references on the weblogic Server jndi datasource.
Is this possible? If so I don't know how to configure it as I would a DB adapter in SOA.
As always, appreciate the info.
Thank you
S
If you use ADF in the model layer (application modules) you can configure them to use JNDI Datasources. Just right click on the application module and select "Configurations."... ». In the next dialog box, you see all currently available configurations (named xxxxxlocal and a xxxxxshared named at least). Select local and press change. This opening of the DB connection dialog where you can change the connection of the JDBC URL of JDBC (JNDI) data source. Save your work, and when you start now use the JNDI name.
Timo
Tags: Java
Similar Questions
-
How to use the node to call a library function to convert C++ source codes
Hi all
There are two dll name 'QMSL_WLAN_Transport.dll' and 'QCAMSL_MSVC10R.dll' and some codes c ++ to connect to the DUT. The two DLLs work together for communicaite with the DUT.
I am confused as how to use the node to call a library function to load the 'QCAMSL_MSVC10R.dll' function as
g_hResourceContext = QLIB_ConnectServer_UserDefinedTransport((HANDLE) USER_HANDLE, UserDefinedSend, UserDefinedReceive, UserDefinedFlushTxRx, true, true);
It seems that 'UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx' Processaddress? And "UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx"'s functions in 'QMSL_WLAN_Transport.dll '.
UserDefinedReceive = (_UserDefinedReceive)GetProcAddress(hUDT,"UserDefinedReceive"); UserDefinedSend = (_UserDefinedSend)GetProcAddress(hUDT,"UserDefinedSend"); UserDefinedFlushTxRx = (_UserDefinedFlushTxRx)GetProcAddress(hUDT,"UserDefinedFlushTxRx");
Attached DLLs and C++ code snippets.
Need help.
Thank you.
These parameters are reminders - pointers to functions that are called by the DLL - and there is no way to duplicate this purely in LabVIEW. Search this forum for the word "recall" and you will find similar questions (for other DLLs). You will need to write your own DLL (in C, C++, etc.) that implements these functions and provides a way to transfer data to LabVIEW.
-
How to use stored procedures of database instead of triggers in database?
Hi gurus
Here in SQL / PLSQL community discussion, I read some discussions that the stored procedures of database are better and 9should be used instead of database triggers.
But despite reading 10s of discussions, I am unable to understand how a stored procedure may be an alternative to a DB-trigger while having many differences.
And even if I'm using a DB instead of DB-trigger procedure, then at what level I should call? of my application, oracle forms IE?
And should I write 3 different procedures, each of them for the Insert, update and delete while I can manage all of these events from a single trigger?
Will you please advice me for this because I am using widely especially triggers to maintain the Stock / inventory, update several tables of a trigger n etc.
PS... I'm working on the database 10g Rel.2.
I use extensively since Oracle 7 database triggers (database Oracle 6 had no triggers).
I use it mainly for complex integrity checks and sometimes for the calculation of derived data.
So, I do not accept that "database triggers are evil".
It is often said that, instead of triggers in database, we use the API (API function, better than the table API).
However, the API may not always replace triggers.
Excellent explanation is given by Toon Koppelaars in 'triggers considered harmful, considered harmful' http://harmfultriggers.blogspot.com/
Regarding your question, it is possible to make the procedures of database to work with Forms - Yes, it is possible.
You can make the database to INSERT, UPDATE, and DELETE procedures and call them before or / and after INSERT / UPDATE / DELETE triggers of forms.
Another option is to use on INSERT / UPDATE / DELETE triggers of forms.
Please note that I do not use these forms to work with the Oracle database triggers. In my view, database triggers are much better.
The third variant will create a data block in a procedure that uses a "table of records.
Kind regards
Zlatko
-
How to use regexp_replace to replace strings instead of substrings in commas
I have a table that has a column that contains the strings separated by columns. For example
Tbl1
===========
ID || Col1
1 A-B-C, B - C, A-B-C
I use select ID, regexp_replace (Col1, ' ([^,] +), \1', '\1') of tbl 1
and I get
Tbl1
===========
ID || Col1
1 A-B-C
I'm looking for is
Tbl1
===========
ID || Col1
1 A-B-C, B - C
Why is my regular expression matching chain also instead of match the whole string? Thank you!
You try to delete the duplicates?
with tbl (ID, Col1) as long as)
Select 1, 'A-B-C,B-C,A-B-C' of all the double union
Select 2, 'A-B-C,B-C,A-B-C,B-C,E-F-G,E-F-G' of the double
)
SELECT id, listagg (str, ',') within the Group (order by lvl) as NewCol1
de)
Select r.*, row_number() over (partition by id, order of str from lvl) rn
de)
Select the level lvl, id, regexp_substr (Col1, ' [^,] +', 1, level) Str
from tbl
connect by level<= regexp_count(col1,="" ',')="" +="" 1="">=>
ID = prior id and
prior sys_guid() is not null - prevent connect loop using unique val
+ 0
)
where rn = 1
Group by id
ID NEWCOL1 1 «A-B-C, B - C» 2 'A-B-C,B-C,E-F-G '. -
Hi all.. I want to use a type UUID number in an attribute of the object from view as default value to generate the unique field... so, how can I generate random uuid?
Well, the UUID looks like as follows:
Example 1: 067e6162-3b6f-4ae2-a171-2470b63dff00
Example 2: 54947df8-0e9e-4471-a2f9-9af509fb5889
You can play with
getMostSignificantBits() and
getLeastSignificantBits() , this is the long values and you can combine them in order to generate BigInteger, as described here:
https://gist.github.com/berezovskyi/2c4d2a07fa2f35e5e04c
Then just use this value in the constructor number:
-
How to use the structure of the event to sort the listbox data?
I have a VI that contains two list boxes. The two list boxes are selectable by the user. This is how I want to interact.
When the VI is initialized, the first list box will be filled with data. If the user double clicks on a cell in the first list box, the second list box will be filled by a sorting of the information contained in the first list box a certain way. I do not think that the details of how these data are sorted is pertainent here... Then I want the user to be able to double-click on one of the lines in the second list box. The double of the item clicked in the second list box will be used in an another VI which will then start.
I have my VI of work such that the first list box will fill the second list box whenever the user double clicks on a cell in the first list box. To do this I use a structure of the event. Here is where the trouble begins. I have a second structure of the event look for double clicks in the second list box, but when I do this, the program crashes. In addition, I want only the user to be able to double-click on the second list box, if the first list box has already been double-clicked.
Generally, my question really revolves around the use of the structures of the event in this application? Can I use two structures of event at the same time? Is there a better way to do it?
No, you probably should not use two structures of different events. One, it should work fine.
The Subvi immediately execute and return? If not and you have the front locked until the event finishes, which would explain what you see.
-
How to use Boolean as a constant push to add more values
Hello everyone, I am trying to use a Boolean OK button and a constant to do something similar to the calculator project that I read in other posts. I scored $1.00, $0.25, button... So now. I just want to add the value of an indicator whenever I press the button.
Is the closest I can get is displayed while I hold the button in and it goes to 0 as I realese it. I want that it add up every time his press.
Thanks in advance
Kevin
Hi Kevin, this is Paul of engineering Applications at OR. Try something like in my attachment. You can use instructions of type of case to determine if a key has been pressed, and then assign this case real value. Good luck with it
.
-
Hello
If anyone can help, I need to add a new connection to oracle OBIEE and the database database. How can I achieve this, I have to define an ODBC connection or there at - he of the underlying configuration files on the server that need to be updated?
Thank youHello
You must set up a new odbc connectionanother import directly---> OIC 10 / 11g--> give the tnsname, the username, the password
Thank you
Saichadn.v -
How to use Robocopy to exclude directories?
/XD directories [directories]...: exclude directories matching given names/paths.
RoboCopy D:\ /MIR R:1 /W:1 /XD D:\System Volume Information\ Z:\, does someone has any suggestions on how to exclude a directory for Robocopy function?
I do not understand that I do not see any directory in drive D:, called "System Volume Information", when robocopy runs his command, this directory shows on the screen, if there is one hidden system directory, it will be fine, but what there are this kind of directories, 3000 thousands so it will be unwise to exclude one by one. Referring to robocopy.txt, there is no option to exclude any hidden system directory.
Do you have suggestions on any still better to deal with this case?
Hello
You can visit these links for more information on the different commands and how to use RoboCopy:
How to use Robocopy to copy security information without copying the file data
http://support.Microsoft.com/kb/323275
Return codes used by the Robocopy utility in Windows Server 2008
http://support.Microsoft.com/kb/954404
You can also refer to:
http://en.Wikipedia.org/wiki/Robocopy
Hope this helps
-
When and how to use - type parameter to 'search' parameter as other types.
We have recently improved BI Publisher to 10.1.3.4. I saw the new type of parameter "search" in the setting section, when the report was created. What is the use of it? How to use it? like other type parameter text, Menu, Hidden, Date.
I couldn't find any help or release notes on this!
Thank you
AyapsAyaps,
It's like choosing MENU. For the two you need a LOV. But for the SEARCH, you will get a PopUp LOV with the choice of the search in the list (comparing to the SELECTION LIST, you get to the MENU Type). So SEARCH is more LOVs and MENU for short.
Concerning
Rainer -
Restart WebLogic Server and JDBC data source problem
Hi all
In the Weblogic Console, we have defined a data source JDBC, which is used by the compoistes to connect to the Oracle Apps database using DB adapters (SOA Suite 11 g).
We have seen that whenever the database of applications down and Monte, we wanted to restart the WLS for DB adapters work. Is this necessary, or is this something to do with the way was Weblogic Server setup?
In addition, we noticed that some adapters file does not pick up the files, and a Weblogic reboot seems to fix everything.
Pointers to debug these highy is appreciated.
Concerning
Anish.You can configure your data source so that the connections are tested until they are given to the request.
An example of how to do it can be found here: http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/ConfigureTestingOptionsForADataSource.html
More information about these features can be found here: http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13952/pagehelp/JDBCjdbcdatasourcesjdbcdatasourceconfigconnectionpooltitle.html#advancedAttributes
You can also set how often to retry on the creation of the connection to another value to zero.
-
How to get the required connection pool data source?
Hi we have created two pools of connections with two different userid to restrict access to the database. now I have 2 pools. so if I want to get the connection to a specific pool how to do this?Use the JNDI string. When you created your pools you created the jndi names. So when connecting to the data source, you specify jndi. That's how.
Your postal code if you have a problem.
-
Errors of the data sources in WebLogic
Description:
I have some errors when I run the WebLogic application. Errors due to data sources. Can you suggest me a solution? Thank you.
Journal:
< 7 August 2014 23: 27 WEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state has changed to STANDBY. >
< 7 August 2014 23: 27 WEST > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed at the START. >
< 7 August 2014 23: 28 WEST > < error > < hats > < BEA-149205 > < failed to initialize the application "LocalSvcTblDataSource" due to the error weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:172)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:167)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. check the log file full stacktrace
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:349)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1309)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1226)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:240)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1566)
Truncated. check the log file full stacktrace
>
< 7 August 2014 23: 28 WEST > < error > < hats > < BEA-149205 > < failed to initialize application "SDM-GOSA" due to the error weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:172)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:167)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. check the log file full stacktrace
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:349)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1309)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1226)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:240)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1566)
Truncated. check the log file full stacktrace
>
< 7 August 2014 23: 28 WEST > < error > < hats > < BEA-149205 > < failed to initialize application "opss-audit-DBDS" due to the error weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:172)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:167)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. check the log file full stacktrace
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:349)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1309)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1226)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:240)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1566)
Truncated. check the log file full stacktrace
>
< 7 August 2014 23: 28 WEST > < error > < hats > < BEA-149205 > < failed to initialize application "opss-audit-viewDS" due to the error weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:172)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:167)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. check the log file full stacktrace
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:349)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1309)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1226)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:240)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1566)
Truncated. check the log file full stacktrace
>
< 7 August 2014 23: 28 WEST > < error > < hats > < BEA-149205 > < failed to initialize the application 'opss-data-source' because of the error weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
weblogic.application.ModuleException: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:338)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:172)
to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:167)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. check the log file full stacktrace
Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: java.net.ConnectException: error connecting to server localhost on port 1527 issued the message Connection refused: connect.
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:349)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1309)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1226)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:240)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1566)
Truncated. check the log file full stacktrace
>
Hello
Follow these steps:
1 stop of applications using stopweblogic.sh
2. closing of the database
3 judgment of the listener.
Now,.
1. start the listener
2. start the database
3. start weblogic.
It will work I guess
Kind regards
Rous
-
Taskflow have model (using the view object instances) of two data sources
JDeveloper Version: 11.1.2
We have a flow of single task that has built pages on two modules of the Application that are based on two different data sources.
If the default activity in the workflow uses a display Instance of AM belonging to a particular data source object.
Browsing later, we reach a page that uses instances of object of another display AM belonging to a different data source, the framework does NOT deliver from the SQL statement against this source of data rather than the data source used in the default activity.
How can it resolve to the appropriate data sources?
Thanks in advance,
NiniNini,
Yes, it's the way things are meant to run:
http://one-size-doesn
{: identifier of the thread = 1012099}Definition data control range for the workflow to the 'remote' change the behavior?
John
-
How can I create a widget from Adobe Acrobat DC Pro that I use in my Web site instead of using EchoSign/DC, as I am now?
Hello
As the creation of widgets is an echosign feature and not an Acrobat feature, unfortunately, you wouldn't be able to create widgets with the Acrobat DC pro subscription. This is due to the reason why you get echosign pro subscription when you subscribe to DC, Acrobat pro, which does not support the widget.
If in the case where you are on Echosign pro subscription, you wouldn't be able to do so because it does not support the creation of widgets. You will have to opt for a global echosign or the company's plan to create widgets.
Or you can opt for one of the Acrobat business plans to perform this task.
If you wish, you can connect with the support of Adobe for more information in this regard.
http://helpx.Adobe.com/x-productkb/global/Service1.html
Please click on the blue button "Still need help" to connect with one of the frames.
Concerning
Sukrit diallo
Maybe you are looking for
-
Hi, I'm missing some partitions that ive accidently deleted a small partiotion about 10 GB, which seemed emoty according to me. In any case, when I try to do a full restore it gives me the error message missing a recovery partition. I was about to re
-
Easy teacher of Win 7 32-bit transfer to a new PC with Win 7 64 bit teacher
Thus, it seems that the ability to "Transfer" does not work for me. I have a pc Windows 7 Professional 32-bit (old computer). My new PC is a Windows 7 Professional 64-bit (new computer) machine. So I used successfully a USB to transfer from your ol
-
I have problems to install keep microsoft 2007 Error 1935 I almost tried everything
-
Why is-focus fly Outlook in Win7
Hello On main stealing application in Windows 7 has been discussed for two years on Microsoft Answers in this thread: http://tinyurl.com/boyoj6p But after two years, there is still a problem. The last reply in this thread asking users to start a new
-
Use of the flash drive on a X 200
I just got my new X 200 and I did not plant still recovery disks. I guess that thay have to go on CD/DVD players due to the boot record having to read from the first disc. I would like to use a flash drive to 32 GB for a full system image backup, fol