This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction problem in MDB  RSS feed

Vincent Lo
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've encountered a corrupt data problem when using MDB with session bean, the scenario is like below.
A MessageDrivenBean receive a MessageVO, it invokes methodA() of SessionBean (RequiresNew) for perform business logic. It will update the entity bean's attribute as well. (it has a byte array field for storing the binary data).
After the methodA() completed, the MDB will then retrieve the same entity bean's content using entitybeanhome.findByPrimary() for sending email.

The problem is the data field is got smaller (should be 20k, but now just 384 bytes).
Anyone know why this happen?

Thanks in advance for your help
[ May 23, 2005: Message edited by: Vincent Lo ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!