This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction atribute: Required & Support

 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.A session bean(bean1)'s method, with Required Attibute of Transaction
2. it call a entity bean's setXX("")(ex:setAccount(""))
3.call bea1.remove(),then happens the error,as if is not successful in Step 2.
4.when i switch the Required attribute to Support in Step 1, and it Did!
why?
Thanks a lot.
 
Victor Htet
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In step 3, what is bea1? do you mean session bean or entity? You said an error occurred. Could you explain more detail about the nature of the error (what kind of exception, etc.)
That would help in answering your question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic