-
1. Re: how to set Transaction attribute notsupported to MBean
welle Jun 16, 2011 7:43 AM (in response to mayankmit2002)You cannot apply the J2EE/JEE transaction model on pure JMX beans. You have to handle the transaction code yourself (Or call a SLSB from the MBean perhaps that does it for you).
When using EJB3 you may use the JBoss extension for creating MBeans with annotations. In that case __PERHAPS__ EJB3 annotated transaction model works (I think so but haven't tested it myself)
-
2. Re: how to set Transaction attribute notsupported to MBean
mayankmit2002 Jun 18, 2011 3:38 AM (in response to welle)Thanks Anders.
Yeah, with EJB3 transaction demarcation is possible with Service POJO. But I've to use MBean as providing attributes to depending MBean is not possible there.
Actually I want to use both JRMP and transaction demarcation. Service POJO's provide transaction demarcation, but is not providing luxury to provide attributes to depending bean, with traditional MBean the case is vice-versa.
-
3. Re: how to set Transaction attribute notsupported to MBean
welle Jun 20, 2011 7:20 AM (in response to mayankmit2002)1 of 1 people found this helpfulA simple solution is perhaps to impl. the absolute-non-transactional code in a "NonSupported" EJB3 SLSB and let the MBean call it.