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 » IBM MQ Java / JMS » Transactions for MQSeries Queue with standard JMS

Post new topic  Reply to topic
 Transactions for MQSeries Queue with standard JMS « View previous topic :: View next topic » 
Author Message
balareddy
PostPosted: Thu Feb 09, 2006 11:14 pm    Post subject: Transactions for MQSeries Queue with standard JMS Reply with quote

Acolyte

Joined: 06 Feb 2006
Posts: 54

Hi,

I am using Websphere MQ for Messaging Queues with standard JMS in application. I am trying in AIX5.3. My client application not using any app server. it is just normal Java application with JMS and MQ Queue for message store.

I wanted to use Transactions which will support both Oracle and MQ JMS. Oracle Transaction will take care of even for System crash. Is there any transaction which will support both(Oracle and MQ JMS) ?

Please suggest me which transaction i have to support both Oracle and JMS.

note: In my Application, i am not using any App server. it is just standalone Java application with JMS on AIX machine.

Regards
Bala
_________________
bala
Back to top
View user's profile Send private message AIM Address
BenR
PostPosted: Thu Feb 09, 2006 11:57 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2006
Posts: 60
Location: Hursley, UK

If you want to do distributed transactions with MQ and a database outside an applicaiton server, you need to use the base Java API, not JMS.

JMS will only support distributed transactions within WebSphere Application Server or WebLogic (the latter may require the extended transactional client, depending on your configuration). The base Java API allows MQ to act as transaction manager for a distributed transactions involving DB2 or Oracle.
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Feb 10, 2006 3:26 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I would beg to differ. I haven't tried it but it is worth investigating.
You will have to use a J2EE TM and a way to instantiate your coordinator (TM).
As you obviously will not have a J2EE container you will need to use a User Transaction and get your TM to instantiate it.

Instantiate the DB Connection as an XA Resource. Possibly the most challenging without the Container. Need for a DataSource factory...
Use the XAConnectionFactory and XAConnection for MQ.

Then enroll both XA Resources into the transaction and let the TM handle it.

In other words a LOT OF WORK.
Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
BenR
PostPosted: Fri Feb 10, 2006 7:33 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2006
Posts: 60
Location: Hursley, UK

It might work, but I don't believe it would be supported. Depends if that matters. The only supported JMS/XA environments that i'm aware of are WebSphere Application Server and WebLogic. The Base Java API would allow the poster to do what he wants in a supported environment.
Back to top
View user's profile Send private message Visit poster's website
fjcarretero
PostPosted: Tue Feb 14, 2006 3:01 am    Post subject: Reply with quote

Voyager

Joined: 13 Oct 2003
Posts: 88

Hi all

I agree with fjb_saper. It can be done but with some effort.

You can have a look at http://dev2dev.bea.com/pub/a/2006/01/custom-mdb-processing.html

Regards
Felipe
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 » IBM MQ Java / JMS » Transactions for MQSeries Queue with standard JMS
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.