Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbStore is being called intermittently.  RSS feed

 
Kiran MR
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
We have an app. that is using both BMP and CMP. In short, a BMP calls certain set of CMP's and then another set of BMP's and then CMP's again.
This is front facaded by a Stateless Session bean where the transaction BEGIN and COMMIT are performed.
However, when there is a shift from CMP to BMP, the ejbStore of the CMP is being called. This occurs when we call the findByPrimaryKey of the first BMP. The Transaction setting is REQUIRED for all methods of the CMP and BMP and SUPPORTS for the finder methods.
Any suggestions please.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you concerned about this behaviour? Performance?
 
Dana Hanna
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could we see you transaction code? Are you using container managed or trying to play with it yourself?
If you are in an EJB doing these calls - and the call never leaves the EJB container - you shouldn't have to do any transaction management.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!