ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Message Driven Bean (Transaction Control Problem)

Post new topic  Reply to topic
 Message Driven Bean (Transaction Control Problem) « View previous topic :: View next topic » 
Author Message
nakuser
PostPosted: Wed Sep 24, 2003 11:23 pm    Post subject: Message Driven Bean (Transaction Control Problem) Reply with quote

Newbie

Joined: 24 Sep 2003
Posts: 5

I have a an MDB running in websphere, listening to messages from MQ series. The bean sends the message to a Session bean which has Transaction control settings set as Required. When the responce comes back from the Bean, Transaction manager tries to commit and release all the resources that are held.
As a result all the dirty entity beans will have their ejbStore() methods invoked.

The Entity beans which are being persisted are set as BMP. One of the bean's instance hangs on the execution of it's PreparedStatement thus the Session bean never completes it's transaction to return a result to the message driven bean. The Session bean hangs at the point where it has to leave it's stub ==> and return to the MDB ==>. The Stub passes control over to the ==> transaction manager and the manager calls all the ==>Entity beans ejbStore() methods, then the execution of an update statement hangs. I put displays in the store method to see if there is a clash of keys, and no duplicate keys are used. A number of the instances are persited but at some point the thing hangs. There is no dead lock reported by the Database, the transaction ultimately times out and you get a dump to show the method calls (Stack trace).

I tried to isolate the problem by writting a Client class which calls my Session Bean to see if the problem is in the remote Components where the Entity bean reside.
With luck the transaction started by the Session bean completes and returns to my Client program.

So I am stuck. I have tried everything under sun.

In short "HELP".

I have been looking at this problem for more than Three weeks. By the way, I am using Web Sphere Studio Developer Version 5 and the database we are using is DB2 UDB.
_________________
SCJP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Message Driven Bean (Transaction Control Problem)
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.