The testsuite uses both methods, so I don't see a problem. If you have
a simple testcase that demonstrates a problem post a bug to sourceforge.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 12:32 PM
Subject: Re: [JBoss-user] is JBOSS JNDI brain-dead or ...
> I think the point that Chris was trying to make was that the code:
>
> InitialContext ic = new InitialContext();
> String className =
>(String)ic.lookup("java:comp/env/subscriber/SubscriberDAOClass");
>
> which works for other app servers, has to be translated into:
>
> InitialContext ic = new InitialContext();
> Context myCts = (Context) ic.lookup("java:comp/env/subscriber");
> String className = (String) myCts.lookup("SubscriberDAOClass");
>
> to work on JBoss.
>
> If I'm not mistaken, the latter is exactly what the test suite is doing as
> you pointed out
> Scott. So why doesn't the first work?
>
> Robert Price
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user