[jboss-user] [Messaging, JMS & JBossMQ] - Error when close Consumer
joy_wind
do-not-reply at jboss.com
Wed Feb 7 23:19:28 EST 2007
I hava a message consumer created like this
... ...
| consumer = session.createConsumer(destination);
| consumer.setMessageListener(this);
| ... ...
the code run successful on startup(as a spring bean).but when close at server shutdown using code:
... ...
| consumer.close();
| ... ...
there raise an Exception:
2007-02-08 10:56:21,197 ERROR [postRegist.JmsListener] Exception when close JMS consumer.
| javax.jms.JMSException: The subscription had not been previously registered
| at org.jboss.mq.server.ClientConsumer.removeSubscription(ClientConsumer.java:248)
| at org.jboss.mq.server.JMSDestinationManager.unsubscribe(JMSDestinationManager.java:548)
| at org.jboss.mq.server.JMSServerInterceptorSupport.unsubscribe(JMSServerInterceptorSupport.j
| ... ...
According to the log , the server has successfully startup,all queue been inited and my jms listener been created successfully too. the above Exception raised only at the server shutdown.
What is the problem ?
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012813#4012813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012813
More information about the jboss-user
mailing list