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 » JMS Trasaction

Post new topic  Reply to topic
 JMS Trasaction « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Tue Apr 22, 2003 9:06 pm    Post subject: JMS Trasaction Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

How do I include transaction strat and end in my stand-alone JMS program? I do not have application server?

I am getting reason-code 2121, in my case

qMgr.begin();
--------
--------
qMgr.backout();

Can you help me providing some links on this stuff?


Thanks
Shiva.
Back to top
View user's profile Send private message
techno
PostPosted: Tue Apr 22, 2003 9:08 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

In above code, I do not have any database involved in it. I just have MQ.
Nothing else.

Thanks
Shiva.
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Tue Apr 22, 2003 11:56 pm    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

This appears to be just a warning. You may not need to use the MQBEGIN call.

Quote:
2121 X'0849' MQRC_NO_EXTERNAL_PARTICIPANTS
An MQBEGIN call was issued to start a unit of work coordinated by the queue manager, but no participating resource managers have been registered with the queue manager. As a result, only changes to MQSeries resources can be coordinated by the queue manager in the unit of work.

This reason code occurs in the following environments: AIX, HP-UX, OS/2, AS/400, Sun Solaris, Windows NT.

Corrective action: If the application does not require non-MQSeries resources to participate in the unit of work, this reason code can be ignored or the MQBEGIN call removed. Otherwise consult your system support programmer to determine why the required resource managers have not been registered with the queue manager; the queue manager's configuration file may be in error.
Back to top
View user's profile Send private message
techno
PostPosted: Wed Apr 23, 2003 10:55 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Can you clear me of

qConnection.createQueueSession(transected, Session.AUTO_ACKNOWLEDGE)

When do I use transected= true ?

Thanks
Shiva.
Back to top
View user's profile Send private message
techno
PostPosted: Sun Apr 27, 2003 5:45 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I used session's commit and rollback.
Also did transacted = true.

This works fine.

May be, in case of just having MQ under transactions, only session's methods should be used, not of q-manager!

Am I right?

Thanks
Shiva.
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 » JMS Trasaction
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.