Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Configuration data

Ken Hygh

2003-07-14

Replies:

Cool, thanks!
Ken

Igor Cunko wrote:
-----Original Message-----
From: Ken Hygh [mailto:kenhygh@NC.RR.COM]
Sent: Monday, July 07, 2003 10:04 AM
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Configuration data

Where does one put config objects for J2EE modules? Let's say I want to
alter some behavior of an EJB at runtime, through either a servlet or an
MBean. I can't put static variables in the EJB class, and I'm not real
comfortable with using a Singleton to hold globally-accessible data - it
seems too close to global variables. There doesn't seem to be a way to
change the environment settings within the ejb-jar.xml.

Thanks,
Ken Hygh
    


JNDI is your friend.

Cunac
  

==================================================================== Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.