[jboss-user] [JBoss Messaging] - jms error of jboss 4.0.5

dxb_han do-not-reply at jboss.com
Wed Nov 15 20:29:33 EST 2006


public final static String  INITIAL_CONTEXT_FACTORY = "org.jnp.interfaces.NamingContextFactory";
public final static String  PROVIDER_URL = "jnp://127.0.0.1:1099";
public final static String  URL_PKG_PREFIXES = "org.jboss.naming";
public final static String  FACTORY_JNDI = "XAConnectionFactory";
 
Properties properties = new Properties();   
properties.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
properties.put(Context.PROVIDER_URL, PROVIDER_URL);
properties.put("java.naming.rmi.security.manager", "yes");
properties.put(Context.URL_PKG_PREFIXES, JMSSender.URL_PKG_PREFIXES);
   
Context context = new InitialContext(properties);
TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(FACTORY_JNDI);
TopicConnection topicConnection = topicFactory.createTopicConnection();
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topic = topicSession.createTopic("topic/testTopic");
 
 
throws exception:
 
org.jboss.mq.SpyJMSException: Cannot get the Topic from the provider; - nested throwable: (javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic)
 at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:201)
 at org.jboss.mq.SpyTopicSession.createTopic(SpyTopicSession.java:73)
 at com.dxb.test.jmstest.JMSSender.initSender(JMSSender.java:57)
 at com.dxb.test.jmstest.JMSSender.(JMSSender.java:33)
 at com.dxb.test.jmstest.JMSSender.main(JMSSender.java:93)
Caused by: javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic
 at org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:613)
 at org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServerInterceptorSupport.java:111)
 at org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor.java:259)
 at org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:117)
 at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:136)
 at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
 at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
 at java.lang.Thread.run(Thread.java:534)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986364#3986364

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986364



More information about the jboss-user mailing list