This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent pls : common information for ejbs  RSS feed

 
reda alami
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hallo
in my application i ve about 30 ejb, and i have some informations which are common to all ejb (log configuration ...), is there any way in the ejb-jar.xml to centralize these informations instead of configuring them inside each ejb

Thanks
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the <env-entry> tag in ejb deployment descriptor (ejb-jar.xml) and consolidate all the global settings under one LookupBean.


Later that thse settings can be obtained in the bean using the lookup()
method.


This will allow you to centralize all the configuration lookup functionality in one place. Other beans/consumers in your system will simply call the appropriate metho on the LookupBean when they need to obtain some configuration information.

HTH
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!