This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

new to EJB  RSS feed

 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!