IntelliJ Java IDE
The moose likes EJB and Other Java EE Technologies and the fly likes EJB Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "EJB Questions" Watch "EJB Questions" New topic
Author

EJB Questions

tanner
Greenhorn

Joined: Oct 30, 2001
Posts: 5
I have a questions on EJB's
How can I define parameters in deployment descriptor so that these parameters are available to all the EJB's in the deployment. I am looking to define things like dataSource name in the deployment descriptor so all the ejb's in the deployment can use the same datasource. Can anyone pls. provide me with a copy of deployment descriptor for this. How to retrieve these values in ejb's? Can anyone provide sample code for this also?
Many Thanks,
Tanner
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
Hi. These are done in Resource references. A very good description of this (And lots of sample code and sample deployment descriptors) can be found in Richard Monson-Haefel's "Enterprise JavaBeans" book.
[This message has been edited by Kyle Brown (edited November 01, 2001).]
[This message has been edited by Kyle Brown (edited November 01, 2001).]


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Alan Williamson
Greenhorn

Joined: Nov 01, 2001
Posts: 14
That O'Reilly EJB book by Monson-Haefel is the best. The new version has EJB 2.0 stuff in it.
 
IntelliJ Java IDE
 
subject: EJB Questions
 
Threads others viewed
PASS PART II & III
Shareable or not shareable connections ?
Passed SCBCD 5 exam
Context Parameters
EJB 2.0 Datasource
MyEclipse, The Clear Choice