If you dig down into the GlassFish code (as I had to do when tracking down this issue), you will see that once these properties get set in the JVM, then it continues to use them for all InitialContext instances (yes, what a PITA).
For what I needed (different ConnectionFactory instances for different servers), I actually ended up doing it through props on the connection factories, rather then do it programmatically through InitialContext.
I was never able to find a solution to the issue you're having...
Alex Sherwin
alex.sherwin_at_acadiasoft.com
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Friday, September 05, 2008 7:56 AM
To: users_at_glassfish.dev.java.net
Subject: Re: InitialContext question
Hi,
I've exactly the same problem as described above.
Did anybody find a solution ?
Thanks
Mathieu
[Message sent by forum member 'matclems' (matclems)]
http://forums.java.net/jive/thread.jspa?messageID=297421
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net