Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to register resource-ref for all beans globally

Yan Zhou
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

Create symphonies in seed and soil. For this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!