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 IBM MQ Support » Java MQ Client - MQBegin() call

Post new topic  Reply to topic
 Java MQ Client - MQBegin() call « View previous topic :: View next topic » 
Author Message
rita
PostPosted: Wed Jan 16, 2002 12:21 pm    Post subject: Reply with quote

Novice

Joined: 31 Dec 2001
Posts: 17

i guess this is simple question for you friends ..
i am using mqclient for java on win nt. i have to access oracle database(which is XA compliant) and query and get the row(s), put it on a queue and send it.
can i do using mq client ? the document says MQBEGIN not valid in client environment. Or i have to write another java program to get
rows and call MQ Put call for each row ?

rita
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Jan 16, 2002 12:35 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Rita,

Yes, you can do this. BUT:

What you cannot do in a Client is to have Transacton co-ordination between MQSeries and a Database.

The MQBEGIN is used to signal the start of a co-ordinated Transaction, so it is not valid in a Client environment, as you have alreadty discovered.

Cheers,

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
bduncan
PostPosted: Thu Jan 17, 2002 2:21 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Eddie is right, but from the sound of your posting, it seems that you might not need resource coordination at all. You said: "I have to access oracle database(which is XA compliant) and query and get the row(s)" which sounds to me like you are doing a SELECT statment (lookup) rather than altering the database with INSERT, UPDATE, or DELETE. In this case, there is no need for your application to be transactional, because it doesn't make any sense to try and rollback or commit a lookup. Nothing in the database got altered. But perhaps I am just misinterpreting what you said...


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Java MQ Client - MQBegin() call
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.