Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

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

Transactions in MDB  RSS feed

Amitabha Karmakar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am a new entrant to this community,it's my first message to the group.I'm facing a problem with MDBs.I am going for container managed transaction for my MDB which is actually doing a sort of task-farming for the entire project.The MDB is a part of the WorkFlow Manager we are implementing for the entire project.The work flow manager(WFM) is responsible for delegating the control to the different processes involved in the system.
After receiving a message the MDB will call a session bean for further processing and delegating the control to the apropriate process based on the business rule.

Once a process ends it's processing of the data it should put a message into the JMS queue and insert a record in the DB saying that it has ended its processing and has put a message in the queue.

This is whole scenario.

Now the problems are:

1) Say the WFM session bean fails and the control is not delegated to the appropriate process then what can be the alternative for delegating the control to the next required process ??
That is to say at that time there will be no identical message in the Q hance the MDB can initiate the identical processing for those particular data.

2) Say when a process ends it puts a message in the Q calling a special util class from inside a session bean to put the message.Then it tries to insert DB Audit record.Now if it faces an SQLException in this then is there any way to revoke the message also from the Q???

Thanks in advance and sorry for the short story that I have just now keyed.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!