It's not a secret anymore!*
The moose likes EJB and other Java EE Technologies and the fly likes new to EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "new to EJB" Watch "new to EJB" New topic
Author

new to EJB

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
I am learning EJB now.
One question:
I set up a datasource in the server(WebSphere, but I think it doesn't matter waht server I am using). I want to write a client program to locate that datasourse through "JNDI lookup". How am I going to do that. I think the key is to set up the propertis/enviroments.
Thanks in advance.


SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
You also have to configure JDBC Connection factory, Define a <resource-ref> entry in the ejb-jar.xml deployment descriptor for a bean class to access a connection factory, and map the bean�s reference to �a resource manager connection factory for the configured data source� to an actual data source known to the application server
Getting a connection:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to EJB