This is how I understand it.

The environment properties are in a Hashtable and can be accessed with the
getSessionContext().getEnvironment().getProperty(key)

where key is the name of the property set up in the DD.

Brandon Campbell
Williams Energy Services
[EMAIL PROTECTED]

-----Original Message-----
From: Thomas Cox [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 13, 1999 10:47 AM
To: [EMAIL PROTECTED]
Subject: Accessing DD properties from EJBean


What is the syntax for accessing properties set in the Deployment Descriptor
from within an EJB?

I hope its not different based on Vendor implementation ; )

Thanks.
_________________________________________________________

Tom Cox
Solution Center of the Americas   Phone:   +1.612.397.4226
400 One Financial Plaza           Fax:     +1.612.692.4226
120 South Sixth Street            Alt Fax: +1.612.397.4370
Minneapolis, MN 55402             e-mail:  [EMAIL PROTECTED]
_________________________________________________________


I'd imagine you should add
these JNDI properties in your deployment descriptor as environment entries
<env-entry>.  The only problem I see with that approach is the fact you'd be
duplicating the same entries in a number of different deployment
descriptors.

Jeff Bailey ([EMAIL PROTECTED])
Sr. Software Engineer
NetGenics, Inc.

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

Reply via email to