Kbase 39356: javax.jms.JMSException: can not return a created XAQueueSession as a QueueSession
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Solution ID: P9356
FACT(s) (Environment):
SonicMQ 4.0
SYMPTOM(s):
javax.jms.JMSException: can not return a created XAQueueSession as a QueueSession
CAUSE:
Change in SonicMQ version 4.0
FIX:
Use the XAQueueConnection getQueueConnection() method
to create the ConnectionConsumer from the QueueConnection instead of creating
the XAQueueSession from the XAQueueConnection directly with the method createXAQueueSession()
Example code:
javax.jms.ConnectionConsumer concons = (((progress.message.jclient.xa.XAQueueConnection)xaconnect).getQueueConnection()).createConnectionConsumer(queue [i], (String)null , svrspool, 1000);