Spring JMS and Oracle AQ

后端 未结 3 937
遇见更好的自我
遇见更好的自我 2021-01-19 14:31

Has anyone got Spring JMS to work with an Oracle AQ queue?

I am trying to connect to AQ based on this article http://blog.nominet.org.uk/tech/2007/10/04/spring-jms-w

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-19 14:57

    That error indicates to me it's actually working but you're not giving it a payload factory to create the object coming off the queue. You do that when you create the receiver. In this case my payload is XMLTYPE so I just use its payload factory:

    queueReceiver = ((AQjmsSession) queueSession).
       createReceiver(queue, XMLType.getORADataFactory());
    

提交回复
热议问题