On Feb 11, 2013, at 6:57 PM, Sule BASOL <[email protected]> wrote:

>       hello , i ve tried to connect ejb's remotely by using ejbd protocol 
> like;
> 
>           final Properties prop = new Properties( );
>            prop.put(Context.INITIAL_CONTEXT_FACTORY, 
> "org.apache.openejb.client.RemoteInitialContextFactory");
>            prop.put(Context.PROVIDER_URL, "ejbd://localhost:4201");
> 
>            final InitialContext c = new InitialContext(prop); // takes too 
> much time like 5seconds on localhost connection , whats wrong ?
> 
> i didnt made profiling but its very interesting to connect localhost too much 
> time.

If it's taking that long I suspect a network-lag issue.  Quick way to see what 
it might be doing is hit the client process with a 'kill -3' when it is doing 
that 5 second hang.  That should spit out what the client is doing.


-David

Reply via email to