|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java MQ Client - MQBegin() call |
« View previous topic :: View next topic » |
Author |
Message
|
rita |
Posted: Wed Jan 16, 2002 12:21 pm Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Wed Jan 16, 2002 12:35 pm Post subject: |
|
|
 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 |
|
 |
bduncan |
Posted: Thu Jan 17, 2002 2:21 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|