looks ok, are you able to package/share a sample (github would be appreciated)


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-26 12:43 GMT+01:00 drieselliott <[email protected]>:
> I use the code below to create my JmsTemplate:
>
>     JmsTemplate jmsTemplate = jmsTemplate;
>     jmsTemplate.setSessionTransacted(true);
>     jmsTemplate.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);
>
> The message listener container is configured like this:
>
>     DefaultMessageListenerContainer mailQueueListenerContainer = new
> DefaultMessageListenerContainer();
>     mailQueueListenerContainer.setConnectionFactory(connectionFactory);
>     mailQueueListenerContainer.setDestination(queue);
>       mailQueueListenerContainer.setMessageListener(new
> AsyncMailSender(mailSender(), fromAddress));
>       mailQueueListenerContainer.setConcurrentConsumers(10);
>       mailQueueListenerContainer.setMaxConcurrentConsumers(20);
>     mailQueueListenerContainer.setTransactionManager(transactionManager);
>     mailQueueListenerContainer.setSessionTransacted(true);
>
> mailQueueListenerContainer.setSessionAcknowledgeMode(Session.SESSION_TRANSACTED);
>
> Is there anything else I'm missing?
>
> Kind regards,
>
> Dries
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/Tomee-throws-Not-a-transacted-session-tp4673029p4673034.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to