About Question enthuware.oce-ejbd.v6.2.469 :

Moderator: admin

Post Reply
ETS User

About Question enthuware.oce-ejbd.v6.2.469 :

Post by ETS User »

U are not saying this question is about a MDB in the description!!!


The onMessage method of a MDB can only have Required or NotSupported.



SOOO BUGGY UR TOOL

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.469 :

Post by admin »

The given answer is correct. As the explanation shows, you cannot use just about any transaction attribute value for any bean.
If you like our products and services, please help us by posting your review here.

Guest

Re: About Question enthuware.oce-ejbd.v6.2.469 :

Post by Guest »

yep, my fault, was too tired :P

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.469 :

Post by himaiMinh »

Regarding to restriction on the transaction attribute,
the @PostConstruct and @PreDestroy methods run in unspecified transactional context for MDB, stateless and stateful bean.
So, even if the beans are CMT and the default attribute is REQUIRED, those lifecycle callback methods are still running in unspecified transactional context?

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.469 :

Post by admin »

Yes, life cycle callbacks are always in unspecified transaction context.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests