Hy,
Balachandher S wrote:
>
> Dear all,
>
> Q1) I would like to know whether I can use System.getProperty() inside
> EJB's.
Yes. But you will get a SecurityException if the bean doesn't have the
permission required for that property.
>
> 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.
Just make each of them an env-entry (see ejb-DD) and access them from
within the bean through the initial context (JNDI).
/Francis.
--
[EMAIL PROTECTED]
MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de
===========================================================================
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".