*
The moose likes JDBC and the fly likes DataSource lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataSource lookup" Watch "DataSource lookup" New topic
Author

DataSource lookup

Dmitry Shekhter
Greenhorn

Joined: Feb 21, 2001
Posts: 26
Basically what i would like to know, is, if i have a DataSource configured and bound to a CosNaming server on one machine, and i'm developing and testing on another machine, what do i need to do to be able to use that datasource? More specifically, what is the significance of the java.naming.factory.initial environmental property, and the java.naming.provider.url environmental property.
If i'm performing the lookup of my DataSource object in the following manner:
InitialContext ictx = new InitialContext();
Object helloRef = ictx.lookup("iiopname://server:1900/some/cos/name");
what exactly goes in place of some/cos/name in the example above?
also, do i need to specify both the java.naming.factory.initial environmental property, and the java.naming.provider.url environmental property, as well as provide a url to the lookup() method, or is there a different combination?
I've went through the JNDI documentation, and several online documentations, as well as the WebSphere docs, but have been unable to find the answer to my question. I would really appreciate any help/examples.
Thanks in advance.
Dmitry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataSource lookup
 
Similar Threads
JNDI lookup
My engineer thesis - chapter about RMI-IIOP - need confirmation / help
JBoss instances cooperating.
JNDI problem
JNDI lookup