• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Questions  RSS feed

 
tanner
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Alan Williamson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That O'Reilly EJB book by Monson-Haefel is the best. The new version has EJB 2.0 stuff in it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!