dev@glassfish.java.net

Re: standalone apps & new InitialContext()

From: Binod <Binod.Pg_at_Sun.COM>
Date: Wed, 25 Oct 2006 16:01:14 +0530

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.