I have replaced JBossMQ with JBoss Messaging in a 4.2 JBoss AS.
Everything seems to work fine - except that the system hangs when I am trying to shut down.
The following message appears in the server.log after shutdown has been invoked:
2008-01-17 09:24:15,116 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool] Unable to get a server session java.lang.Exception: Cannot get a server session after the pool is stopped at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.getServerSession(JmsServerSessionPool.java:120) at org.jboss.jms.client.JBossConnectionConsumer.run(JBossConnectionConsumer.java:277) at java.lang.Thread.run(Thread.java:595)
I have found out, that I can solve the problem by setting ServerPeerID to something different from 0 in messaging-service.xml.
I can not say that I understand the reason: the server is not running clustered.