This content has been marked as final.
Show 2 replies
-
1. Re: Object from context
adrian.brock Dec 23, 2002 12:14 PM (in response to winestr)Remove providerurl for a start.
Use new InitialContext()
Regards,
Adrian -
2. Re: Object from context
winestr Dec 24, 2002 3:11 AM (in response to winestr)I have changed my code to
Context c = null;
Object d;
/**@todo Complete this method*/
try
{
c = new InitialContext();
d = c.lookup("mysource");
}
catch (NamingException e)
{
try
{
d = c.lookup("java:mysource");
}
catch (NamingException e1)
{
try
{
d = c.lookup("java:comp/env/mysource");
}
catch (NamingException e2)
{
e2.printStackTrace();
}
}
}
but still do have any success
Regards
Ray