出错代码:
我的JBOSS版本是6.0.0 GA
报错:
既然没有找到那我就到http://localhost:8080/jmx-console/ 去看看咯,结果还真没有看见QueueConnectionFactory,但是看见了一个ConnectionFactory,就实验了一下,结果OK了,呵呵,
我想是因为JBOSS 6版本把PTP和PUB/SUB的ConnectionFactory作了一个整合,所以没有QueueConnectionFactory了.
- QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("QueueConnectionFactory");
报错:
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
- at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
- at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
- ..................
javax.naming.NameNotFoundException: QueueConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
..................
既然没有找到那我就到http://localhost:8080/jmx-console/ 去看看咯,结果还真没有看见QueueConnectionFactory,但是看见了一个ConnectionFactory,就实验了一下,结果OK了,呵呵,
我想是因为JBOSS 6版本把PTP和PUB/SUB的ConnectionFactory作了一个整合,所以没有QueueConnectionFactory了.