简体   繁体   中英

Jms session.commit() throws exceptoin when I run my application in Jboss server

I am using ActiveMQ v5.11.1 with managed beans on Jboss EAP v6.3 server so I get exception when i perfrom jms session.commit() or rollback()

(ActiveMQ Session Task-1) javax.jms.IllegalStateException: Not a transacted  session

But when i run as java application it gives no exception why ? Could it be because of version mismatch ?Please help.

Read here . If your jms resource is controlled by JTA, you can't commit or rollback manually

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM