Syed Fareed Ahmad wrote:
>
> I have TWO questions:
>
>    Can any body explain me how to access Environment Variables in the EJB
>    1.1(has changes from 1.0) and How can we do it in the WebSphere 3.0 Advanced
>    Edition for Windows NT?

InitialContext ctx;

ctx = new InitialContext();
myVar = ctx.lookup( "java:/comp/env/my-var" );


>    The second thing is that how we make the Data Source in the WebSphere 3.0
>    Advanced Edition Environment? and How to use it in the BMP Entity EJB code?

ds = (DataSource) ctx.lookup( "java:/comp/env/jdbc/mydb" );

arkin

>
> Fareed Ahmad
>
> _________________________________________________________________________
>
> Disclaimer:
>
> "Any  unauthorized  form of reproduction of this message is strictly prohibited.
> The  bank  does  not  guarantee  the  security of any information electronically
> transmitted  and  is  not liable for the proper and complete transmission of the
> information  contained  in this communication, nor for any delay in its receipt.
> THE  USE  OF  EMAIL  FOR  ANY  ILLEGAL  PURPOSE OR FOR ANY PURPOSE OTHER THAN AS
> PERMITTED  BY  THE  BANK  IS  STRICTLY  PROHIBITED  AND  SUCH  USE MAY RESULT IN
> DISCIPLINARY AND LEGAL ACTION."
>
> ===========================================================================
> 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

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