• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB Questions

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic