"IllegalStateException: Connection closed" Message connecting to MQSeries from Seam application

Solution Verified - Updated -

Issue

  • When connecting to IBM MQSeries from a JBoss Seam application, the following exception occurs in the logs:

    Caused by: javax.jms.IllegalStateException: Connection closed
     at com.ibm.ejs.jms.JMSConnectionHandle.checkOpen(JMSConnectionHandle.java:806)
     at com.ibm.ejs.jms.JMSQueueConnectionHandle.createQueueSession(JMSQueueConnectionHandle.java:197)
     at org.jboss.seam.jms.QueueSession.create(QueueSession.java:38)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
    
  • The Seam application is calling an EJB3 which obtains a JMS connection from IBM MQSeries

Environment

  • JBoss Enterprise Application Platform [EAP] 4.3.0.GA
  • IBM MQSeries
  • Seam

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content