from 'testEnvEntries()':

        i = (Integer) initCtx.lookup("java:comp/env/Ints/i1");
        System.out.println("Ints/i1 = "+i);


[EMAIL PROTECTED] wrote:

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



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to