Author |
Message
|
vnreddy |
Posted: Sat May 03, 2003 7:05 am Post subject: JMS Transactions under weblogic |
|
|
Novice
Joined: 01 May 2003 Posts: 23 Location: UK
|
Hi all,
I am Narasimha Reddy working as a IBM-MQ Consultant since one and half year.It's very pleasure to join in this MQ group.
Here I have a strange situation with the transactions for MQ in weblogic 6.1 through JMS..
Here what I have done is:
1) Created and XAQCF and Q names for JNDI using JMSAdmin tool with XAQCF as in syncpoint YES mode..
2) Developed a MDB(message driver bean) which is listening to the MQ queue
3) If I specify the transaction type as 'required' in configuration scripts then the MDB is not invoking..If I specify the 'not suppored' then only MDB is firing!!
Here my problem is
1) If I want to roolback the message like using the function rollback() to the MQ queue it's not happening..
2) Is weblogic 6.1 supports transactiions for IBM-MQseries?...I know it does under websphere..?
Have any of you faced this kind of situvation?? Please help here of how to go about this..? Is anything missing here..Thanks..
Regards
Narasimha reddy |
|
Back to top |
|
 |
mqonnet |
Posted: Mon May 05, 2003 5:43 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Havent used this personally. But check to see if MQ can act as transaction co-ordinator with Weblogic. Which i doubt it would. In that case, Weblogic should co-ordinate the transactions and MQ should just be a participant. Check the manuals for more info on this.
Hope this helps.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
middlewareonline |
Posted: Mon May 05, 2003 8:59 am Post subject: |
|
|
Acolyte
Joined: 09 Jul 2001 Posts: 73
|
As far as I know -
1. Which service pack are you on in terms of Weblogic 6.1 ? There is a well-known issue of Weblogic MDB with MQSeries when you use transactions. It somehow gets into a loop and would be stuck. Check out bea's newsgroup.
2. Inside MDB you can NOt define your own transaction. The MDB's are container managed transaction only.
Raj |
|
Back to top |
|
 |
vnreddy |
Posted: Tue May 06, 2003 6:12 am Post subject: |
|
|
Novice
Joined: 01 May 2003 Posts: 23 Location: UK
|
Here I am using Weblogic 6.1 only no service pack, Basically I am using the trail version of weblgic6.1.
In Bea newsgroup I have found one FAQ http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.ejb.ejb20&item=1268&utag=
It says that there is no way of getting transaction between weblogic and mqseries. The work around way is writing a start up class which will receive MQ series messages and puts them into Weblogic JMS queue.From there I can use the MDB.
But it's surprising me that, why these two products WLS and MQ are not in transaction..
Thanks allot for your time..
Regards
Narasimha reddy |
|
Back to top |
|
 |
middlewareonline |
Posted: Tue May 06, 2003 9:33 am Post subject: |
|
|
Acolyte
Joined: 09 Jul 2001 Posts: 73
|
What you said is below is NOT correct?
"But it's surprising me that, why these two products WLS and MQ are not in transaction.. "
The statement I made only applies to MDB's. MDB's are different breed of objects. They are java listener ( or observers) listenining on a thread - so implementing a transaction is bit of a pain there. You can NOT throw or return anything from MDB to inform container that the transaction that container started has to be rolled back or committed.
Raj _________________ ---------------------------------------------
IBM & SUN (J2EE) Certified Consultants,
http://www.MiddlewareOnline.com
A "SARVAM" Online Portal
http://www.SARVAM.com
--------------------------------------------- |
|
Back to top |
|
 |
vnreddy |
Posted: Wed May 07, 2003 12:30 am Post subject: |
|
|
Novice
Joined: 01 May 2003 Posts: 23 Location: UK
|
Yes Raj , my previous statement was vague...
Thanks for correcting me..
Regards
Narasimha reddy |
|
Back to top |
|
 |
|