• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transactions in EJB

 
Mrutyunjay Hanchinal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am experiencing a problem with handling transactions in EJB
My application has the following
1. A servlet invokes a business method in stateful session bean "SFBean"
2. "SFBean" uses a helper class "Helper" to process some business logic.
3. In "Helper" I make use of two entity beans (BMP)
Here my problem is that I want the use of two entity beans as a single transaction.
If I start a UserTransaction in "Helper" I am getting not supported Exception as nested transactions are not allowed
Can any body suggest me How Do I go abt solving this
Thanks in anticipation
Mrutyunjay
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Build a stateless session bean and call your BMP's from within that.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic