Hi Oleksiy
I can't reproduce the error. Please see Glassfish EJB FAQ:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
Specifically, the use of InitialContext(env) in your example is
questionable.
Cheng
Binod wrote:
> Oleksiy Stashok wrote:
>
>> Hi,
>>
>> I'm trying to use GF JNDI namespace repository in standalone
>> application (GFv2 b20).
>> And have 2 problems:
>> 1) Screens of logging text appear (Level.INFO).
>> 2) After program completes execution it just hangs... And
>> System.exit() is only solution, which helps.
>>
>> Are there any thoughts? May be I'm doing something wrong?
>>
>> Here is my code:
>> / env.put("org.omg.CORBA.ORBInitialHost", host);
>> env.put("org.omg.CORBA.ORBInitialPort", String.valueOf(port));
>> InitialContext ic = new InitialContext(env);
>> /
>> Thanks.
>>
>> WBR,
>> Alexey.
>
> Are you using JMS resources and have you left any JMS session or
> connection opened at the
> end of the app?
>
> - Binod.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>