Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TrancationRequiredException

 
sid nagol
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have a remote client trying to call a method on a session bean.
lets say the transaction attribute for this method is mandatory.

the remote clients call is inside a trasaction

ut.begin();
sessioinBean.method(); (this methods attribute is mandatory)
ut.commit();

as the call to this bean is in clients transaction, does that mean the mandatory requirement for this method is satisfied??
how can the trsansaction in the client propagate to the container??
how is the info that tne call is in a transaction is propagated to the container??

thank you vary much for ur time.
sid
 
Prashu Negu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If called bean is CMT(as in ur case), yes it is statisfied. In case it is BMT, caller tx will be suspended. Regarding carrying the tx info, it is the container's job and thats why we pay so much for app servers.
 
Praveen Kumar Mathaley
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
propagation of transaction from remote client to the bean depends on the client,if your client implements JTS ( or your client runs in a container which take cares of the transaction i.e does the work of JTS for you...) then the transaction is propagated.
Note: The client and container should support distributed transactions...
All the application server's don't support distributed transactions...

please refer the url [ UD: removed link to copyrighted material ]

[ August 02, 2005: Message edited by: Praveen Kumar Mathaley ]
[ August 03, 2007: Message edited by: Ulf Dittmer ]
 
sid nagol
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pravenn, Prashu
thank you very much. i really appreciate it
sid
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic