Forums Register Login

problem with transaction Attribute

+Pie Number of slices to send: Send
Dear sir would you please clearify me the diffrence between Required and NotSupported transaction attribute.

I have read in book that if the transaction is not running both will create a new transaction then what is diffrence between them.

with regard

Arun kumar maalik
+Pie Number of slices to send: Send
it is not correct that both of them create transactions.

Required means that the bean's method must be invoked within a transaction context. if the client that invoke the method which is marked with this attribute be in a transaction scope then this method will go under that transaction scope , if the client that call the method marked with this attribute does not involed in any transaction then a transaction for the method execution will create and the created transaction will end by method return.

NotSupported , it means that the method marked with this attribute does not support transaction , so if the client whom call this method be within a transaction scope then transaction will pause until the method execution ends, then transaction will resume.

hth
This looks like a job for .... legal tender! It says so right in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 375 times.
Similar Threads
XSL and XSLT
regarding Tansaction Exceptions
doubt about wrapping and boxing
Diff between Element and node
Please anwer to my question?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:41:01.