On Fri, 25 Aug 2000 16:21:55 +0530, Balachandher S
<[EMAIL PROTECTED]> wrote:
>Q1) I would like to know whether I can use System.getProperty() inside
>EJB's.

No, that is not allowed. A particular EJB server may allow it, but you
cannot rely on this capability to be available.

>Q2) I would also like to know how to set application specific environment
>variables that an EJB can use.  For example, I would like to have a JDBC
>connection based on the variables set on the OS environment.

Use environment entries in the deployment descriptor for that.

>Q3) Finally, I would like to know whether I am doing / thinking right ?  If
>not, I wish to suggest me a neat way.

Either use environment entries to configure your beans, or use a
properties file and ResourceBundles.

/Rickard

--
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

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

Reply via email to