*
The moose likes EJB and other Java EE Technologies and the fly likes how to register resource-ref for all beans globally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to register resource-ref for all beans globally" Watch "how to register resource-ref for all beans globally" New topic
Author

how to register resource-ref for all beans globally

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
Hi,

With EJBs, each bean has an entry for resource-ref, where we define data source.

If all my beans use the same data source, is there a way I can define it in one place, rather than one for each bean?

An issue related to this is, do I have to have EJBs to be able to look up data source? In other words, in my J2EE apps., how could a plain old java class look up data source defined in DD?

Thanks.
Yan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to register resource-ref for all beans globally
 
Similar Threads
global parameter for EJBs
ejb using datasource best practice
How to deploy URLs like default URL provider in websphere
new to EJB
JNDI Name format