only two transaction attributes can be applied to a MDB:required or Not Supported.
From the error message giving above,I think you should edit your ejb-jar.xml and the MDB to be transaction required.
From the error message giving above,I think you should edit your ejb-jar.xml and the MDB to be transaction required.
http://www-900.ibm.com/developerWorks/cn/education/java/j-jms/tutorial/
先自己作个message 消费者
是不是,若是required ,则我们必须在编码时必须人为写一些事务控制等等,否则就不
required表示当前方法必须在事务上下中运行,如果当前不存在一事物上下文,则容器先要重新生成一事务上下文;
NotSupported表示当前方法必须在非事务上下中运行,如果当前已有事务上下文运行,则容器要暂停事务,然后运行Bean,结束后在恢复原来的事务;
根据错误信息,你的MDB应该在DD中声明成required属性的。