I want to get the value of the PROVIDER_URL (for
example "localhost:1099") from within a running EJB. 

I can't find it in JNDI and it doesn't appear in the
system properties. For example I tried the following
code in my bean with no luck.

InitialContext ctx = new InitialContext();
String url = (String)
ctx.lookup(Context.PROVIDER_URL);

and

String url = System.getProperty(Context.PROVIDER_URL);

My Beans are working just fine, and I'm able to
connect from my client to my server without problems,
so I don't think it's a configuration issue.

Any Ideas?
Thanks Much
Andrew Branch


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to