JBAS011607: Cannot stop JBoss because failed to unbind messaging object bound to jndi name java:/ConnectionFactory
dasago Jul 11, 2014 9:52 AMHello all together,
I get following warning when I want to stop the Jboss:
15:34:18,035 WARN [org.jboss.as.messaging] (ServerService Thread Pool -- 105) JBAS011607: Failed to unbind messaging object bound to jndi name java:/ConnectionFactory in 5 seconds 15:34:23,046 WARN [org.jboss.as.messaging] (ServerService Thread Pool -- 94) JBAS011607: Failed to unbind messaging object bound to jndi name /topic/RequestSessionTopic in 5 seconds
Also JBoss cannot stop the server. I always have to kill it. The strange thing is that the JMS Topic works fine.
Sender:
@Singleton @Local(RequestSessionService.class) @Interceptors(TracelogInterceptor.class) public class RequestSessionPublisher implements RequestSessionService { @Resource(mappedName = "java:/ConnectionFactory") private TopicConnectionFactory factory; private TopicConnection connection; @Resource(mappedName = "java://topic/RequestSessionTopic") private Topic jmsTopic; private TopicSession session; private TopicPublisher publisher; @PostConstruct private void init() { try { connection = factory.createTopicConnection(); session = connection.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE); connection.start(); publisher = session.createPublisher(this.jmsTopic); } catch (JMSException e) { LOG.error(e); } } @PreDestroy private void shutDown() throws JMSException { this.connection.close(); session.close(); publisher.close(); } @Override public void fireRequestSessionDataChangeEvent(RequestSessionData data) throws JMSException { String messageContent = ""; TextMessage txtMsg = session.createTextMessage(messageContent); String messageContent = convertToJson(data); TextMessage txtMsg = session.createTextMessage(messageContent); publisher.publish(txtMsg, DeliveryMode.PERSISTENT, 3, 100000); } }
Receiver:
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:/topic/RequestSessionTopic"), @ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"), @ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = "RequestSessionConsumer"), @ActivationConfigProperty(propertyName = "clientId", propertyValue = "RequestSessionListener") }, mappedName = "test/RequestSessionListener") public class RequestSessionListener implements MessageListener { private final Logger log = Logger.getLogger(RequestSessionListener.class); @Override public void onMessage(Message message) { //.... } }
Can anyone help me why I get the warning when I want to stop the server.