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".
