[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2 Server does not shutdown cleanly
jmesnil
do-not-reply at jboss.com
Tue Mar 31 10:03:39 EDT 2009
"timfox" wrote : Try starting up the server without the jboss messaging service to see if it's related to just the jndi server.
the JNDI server is indeed the guilty part:
| public static void main(String[] args) throws Exception
| {
|
| System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| System.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces, value");
|
| NamingBeanImpl namingInfo = new NamingBeanImpl();
| namingInfo.start();
| org.jnp.server.Main jndiServer = new org.jnp.server.Main();
| jndiServer.setNamingInfo(namingInfo);
| jndiServer.setPort(1099);
| jndiServer.setBindAddress("localhost");
| jndiServer.setRmiPort(1098);
| jndiServer.setRmiBindAddress("localhost");
| jndiServer.start();
|
| System.out.println("STARTED");
|
| jndiServer.stop();
| namingInfo.stop();
| }
|
I've asked about it on #jboss and I'll raise a JIRA issue if I don't have a reply.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222355#4222355
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222355
More information about the jboss-dev-forums
mailing list