Announcement Announcement Module
Collapse
No announcement yet.
Spring JMS+Sonic MQ JCA Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring JMS+Sonic MQ JCA

    Hi,

    I'm trying Sonic use JCA Resource Adapter with Spring JMS on WebLogic Server using locally transacted sessions. In configuration I set acknowledge="transacted", but what seems to happen, is that message is consumed, but acknowledgment is not sent to MQ server, because after shutting down WebLogic, all messages reappear in queues.

    Is it possible to configure Spring JMS in JCA container using locally transacted session?

    I also need to send response message to reply to destinitation, but because I'm using JCA, I can't use SessionAwareMessageListener and hence can't get reference to Session. It seems that it is possible only to produce message by injecting JmsTemplate (connection factory) into my message listener? But this probably means that I can't use locally transacted session, because I have references to 2 different jms sessions?

    Code:
    <jms:jca-listener-container resource-adapter="resourceAdapter"
                                activation-spec-factory="activationSpecFactory"
                                concurrency="10"
                                acknowledge="transacted">
            <jms:listener .../>
        </jms:jca-listener-container>
    Resource adapter and connection factories are read using JNDI.

    Thanks
Working...
X