I met a problem when the MDBs running,there're always warning as follows.How can I config to solve it?
Thanks a lot.
[11/27/03 10:38:18:438 PST] 52e79206 ConnectionMan W J2CA0075W: An active transaction should be present while processing method allocateMCWrapper.
[11/27/03 10:38:18:469 PST] 52e79206 ConnectionMan W J2CA0075W: An active transaction should be present while processing method initializeForUOW.
-
how to activate a transaction in MDB dev? (5 messages)
- Posted by: Guotong Xie
- Posted on: December 11 2003 03:49 EST
Threaded Messages (5)
- how to activate a transaction in MDB dev? by sergiu truta on December 11 2003 04:15 EST
- how to activate a transaction in MDB dev? by sergiu truta on December 11 2003 04:20 EST
-
how to activate a transaction in MDB dev? by Guotong Xie on December 11 2003 04:51 EST
-
how to activate a transaction in MDB dev? by sergiu truta on December 11 2003 05:04 EST
- how to activate a transaction in MDB dev? by Guotong Xie on December 11 2003 05:17 EST
-
how to activate a transaction in MDB dev? by sergiu truta on December 11 2003 05:04 EST
-
how to activate a transaction in MDB dev? by Guotong Xie on December 11 2003 04:51 EST
- how to activate a transaction in MDB dev? by sergiu truta on December 11 2003 04:20 EST
-
how to activate a transaction in MDB dev?[ Go to top ]
- Posted by: sergiu truta
- Posted on: December 11 2003 04:15 EST
- in response to Guotong Xie
You should give more details on these cases. Maybe in your onMessage() method in your MDBs you are doing some actions on a database and these are not executed inside a transaction. For example your MDBs are using some entities in order to store some data inside the database. If so, the entity beans should run inside a transaction. Check inside the ejb-jar.xml files that the <trans-attribute> for those methods is Required. In this case, if there is no transaction already running when the entities are called, a new transaction is started.
If you could give more details on your problem maybe we can help you. Here I just guessed your case so this may not be the case and solution
Sergiu. -
how to activate a transaction in MDB dev?[ Go to top ]
- Posted by: sergiu truta
- Posted on: December 11 2003 04:20 EST
- in response to sergiu truta
FYI, if you start a transaction inside your MDBs then do some database operation you will get the following WARNING:
"WARN [LocalTxConnectionManager] prepare called on a local tx. You are not getting the semantics you expect!"
This is because you get a message and do database operations inside the same transactions. -
how to activate a transaction in MDB dev?[ Go to top ]
- Posted by: Guotong Xie
- Posted on: December 11 2003 04:51 EST
- in response to sergiu truta
first of all,thanks a lot for your timely reply.
In fact,I've no database operation in my onMessage().It seems that there's something wrong with my configuration for QueueConnectionFactory.Everytime when I use QueueConnectionFactory to send message,there will be this warning.I don't quite clear about it.And if this warning accumulated,the JMS server will crash.No connection will be get anymore.:( -
how to activate a transaction in MDB dev?[ Go to top ]
- Posted by: sergiu truta
- Posted on: December 11 2003 05:04 EST
- in response to Guotong Xie
Give me your email and I shall send you a simple example with a MDB and a client and how to use it in JBoss(by the way, you didn't say what app server you are using.) -
how to activate a transaction in MDB dev?[ Go to top ]
- Posted by: Guotong Xie
- Posted on: December 11 2003 05:17 EST
- in response to sergiu truta
Thanks a lot.
I'm using WAS5.0,my mail:[email protected]