• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Need understanding of "Transaction associated with a Client"

 
Ranch Hand
Posts: 634
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Source:13.6.1 Bean-Managed Transaction Demarcation



As mentioned in the above topic:

The actions performed by the container for an instance with bean-managed transaction are summarized
by the following table. T1 is a transaction associated with a client request, T2 is a transaction that is cur-rently associated with the instance (i.e. a transaction that was started but not completed by a previous
business method).



As per my understanding,T2 is transaction that was started using ut.begin()(ut is instance of UserTransaction interface) in Bean class but was not committed or roll-backed.
However,I am not able to understand T1 .
Question 01:what does" T1 is a transaction associated with a client request" exactly means ?
Question 02:Can someone give or refer a example explaining the same ?
 
Creator of Enthuware JWS+ V6
Posts: 3390
311
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mohit,

Question 01:what does" T1 is a transaction associated with a client request" exactly means ?


It just means that the client is associated with a transaction. For instance a Container Managed Stateless Session Bean running under a transaction (T1) calling a Bean Managed Stateless Session bean being associated with another transaction (T2 can only come from a Stateful Session Bean).

Bottom line is: the Client's transaction is always suspended when it comes to BMT beans, even if the client is another BMT bean (as opposed to CMT beans, they can run under a transaction started from a CMT bean or even from a BMT bean (see example in my notes 5.4.4))

Regards,
Frits
 
Mohit G Gupta
Ranch Hand
Posts: 634
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Frits
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic