• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

TrancationRequiredException

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pravenn, Prashu
thank you very much. i really appreciate it
sid
reply
    Bookmark Topic Watch Topic
  • New Topic