On Dec 4, 2009, at 12:04 PM, Stephen Connolly wrote:

That property will shutdown the local openejb instance that you have created with the InitialContext... I suspect that is not what you are after. The property is most useful when running unit tests where you need to restart
the container to check with some other initial conditions

Exactly.

2009/12/4 rtselvan <[email protected]>


I am looking up ejbs from my web app running on a tomcat server and openEJB
running as standalone, when the openEJB server is restarted, the web
application JNDI lookups fails with "Invalid response from server: -1", so
I
am trying to close the JNDI context and re-open it but still getting the
same "Invalid response from server: -1" error. It seems that the jndi
context.close doesn't do anything seems due to caching. Is there a setting that can be passed to the "RemoteInitialContextFactory" to force close it?

What OpenEJB version are you using? We had an issue with this I thought we had fixed.

An alternate approach would be to use the http protocol instead. Try using this as your initial context url:

  http://127.0.0.1:8080/openejb/ejb

Adjust the host and port to be where you have Tomcat running.

Hope that helps!

-David

Reply via email to