Hi,
I'm wondering what happens if i call a business method in a CMT bean that has the transaction behaviour "supports" and I call for example getRollbackOnly:
the spec says(17.6.2.3 Supports):
� If the client calls with a transaction context, the Container performs the same steps as
described in the Required case.
� If the client calls without a transaction context, the Container performs the same steps as
described in the NotSupported case.
would mean:
- with transaction context => works
- without transaction context => IllegalStateException (according to HeadFirstEJB)
how can I handle "supports" as bean provider then ?
Severin
I'm wondering what happens if i call a business method in a CMT bean that has the transaction behaviour "supports" and I call for example getRollbackOnly:
the spec says(17.6.2.3 Supports):
� If the client calls with a transaction context, the Container performs the same steps as
described in the Required case.
� If the client calls without a transaction context, the Container performs the same steps as
described in the NotSupported case.
would mean:
- with transaction context => works
- without transaction context => IllegalStateException (according to HeadFirstEJB)
how can I handle "supports" as bean provider then ?
Severin