This content has been marked as final.
Show 3 replies
-
1. Re: Executing a session bean method in transaction
mravikrish Nov 28, 2008 6:12 AM (in response to mravikrish)hi
any body please suggest me its very urgent.
Thanks
K Ramu -
2. Re: Executing a session bean method in transaction
peterj Nov 28, 2008 11:52 AM (in response to mravikrish)Session bean methods defined as transactional happen within a single transaction. So in your case all of the queries (or updates) within that method are done within the same transaction.
You can specify the transaction scope like this:
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void someMethod(...)
REQUIRED is the default, so you could actually leave it off. -
3. Re: Executing a session bean method in transaction
mravikrish Nov 29, 2008 2:11 AM (in response to mravikrish)
Thanks Peter Johnson