jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "new to EJB" Watch "new to EJB" New topic

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.

<i><br />Sun Certified Programmer for Java 2 Platform (SCJP)<br />Sun Certified Developer for Java 2 Platform (SCJD)<br />Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)<br />Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)<br />Sun Certified Enterprise Architect for J2EE (SCEA)<br />IBM Certified Enterprise Developer, WebSphere Studio V5.0<br /></i>
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:
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: new to EJB
Similar Threads
Why ejbPassivate and ejbRemove are not called by weblogic container?
Set Up Needed for Servlets, EJB, JSP
What's the recommanded EJB container for Tomcat?
passing identity of a plain java program to an ejb
Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server 2000)