how to access <env-entry>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   khalil_munavary
Posted On:   Tuesday, July 30, 2002 02:08 AM


Hi,




Suppose I have a ejb-jar.xml with some value. The ejb jar is delpoyed into weblogic server. Now I want to access those values from a java class. How to access them?




Also, suppose if I have more than one ejb-jar.xml in WLS do I have to mention each jar seperately during lookup?




Regards,



Khalil Ahamed (khahmed@apis.dhl.com)

Re: how to access <env-entry>

Posted By:   man_ju  
Posted On:   Tuesday, July 30, 2002 02:39 AM




simply call it like this in ur bean
InitialContext ictxt = new InitialContext();

String url=ictxt.lookup("java:comp/env/URL").toString();

where ur ejb-jar.xml is like this

URL
java.lang.String
jdbc:oracle:oci8:@active23




About | Sitemap | Contact