What if I have an EJB that is delegating to some non-EJB class where the non-EJB class reads from a property file?
Anthony Catalfano Information Technology Analyst Application Management Services 400 19th Street Moline, IL 61265-1337 phone: (309) 748-5201 fax: (309) 765-4128 > -----Original Message----- > From: John Harby [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 11:34 AM > To: [EMAIL PROTECTED] > Subject: Re: Environment Variables > > The danger of doing this sort of thing though is that although > your container may allow you to do it today, it may (and probably > should) not allow you to do it tommorow. Thus, you risk having to > rewrite your code when your container vendor puts out a new release. > > >From: "Peter J. Braswell" <[EMAIL PROTECTED]> > >Reply-To: "Peter J. Braswell" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: Environment Variables > >Date: Thu, 27 Sep 2001 10:39:52 -0400 > > > >Steve, > >I usually use a property file to set runtime parameters and the > >loadAsResource method call to read the file. People will yell as soon as > >they read this post and point to not doing file i/o in ejbs as per the > >spec, > >but I've done it on numerous containers with no problem. I usually use a > >property factory to ensure the file is read and properties initialized > only > >once... It works well, clean, simple, etc.... > > > >If you want code, let me know. I'll send it to you off line. > > > >cheers, > >peter > > > >-----Original Message----- > >From: A mailing list for Enterprise JavaBeans development > >[mailto:[EMAIL PROTECTED]]On Behalf Of Steve Brown > >Sent: Thursday, September 27, 2001 8:10 AM > >To: [EMAIL PROTECTED] > >Subject: Environment Variables > > > > > >Hi, > > > >I would like to set an environment variable for my EJB container that all > >EJBs can access. I can see how you set <env-entry>'s for individual > beans, > >but how do you set an environment variable that ALL server side > components > >within the EJB container can read? We are using Weblogic 6.0. > > > >Thanks, > > > >Steve. > > > >========================================================================= > == > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > >of the message "signoff EJB-INTEREST". For general help, send email to > >[EMAIL PROTECTED] and include in the body of the message "help". > > > >========================================================================= > == > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > >of the message "signoff EJB-INTEREST". For general help, send email to > >[EMAIL PROTECTED] and include in the body of the message "help". > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > ========================================================================== > = > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
