This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes urgent pls : common information for ejbs 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 "urgent pls : common information for ejbs" Watch "urgent pls : common information for ejbs" New topic
Author

urgent pls : common information for ejbs

reda alami
Greenhorn

Joined: Jan 07, 2005
Posts: 4
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

Joined: Mar 17, 2000
Posts: 5782
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


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent pls : common information for ejbs
 
Similar Threads
[Political]Post-war Iraq
ejb-jar.xml a clear definition for EJB3
Retrive information from Active directory
best way to send xml
SCBCD 5 Beta Results