Author |
Message
|
paatchu |
Posted: Tue Jan 23, 2007 1:45 am Post subject: XA-Transaction from a Client |
|
|
Apprentice
Joined: 07 Sep 2006 Posts: 32
|
I've a sample program, which does an XA-transaction in MQ Server.
But i want to run it from another machine(MQ-Client), and the same XA should happen.
But the problem is in Program it refers to a Queue Manager and a Queue.
But when running it from Client it's irrelevant.(B'cze in MQ-Client we can't create a QM.!!)
The requirement as follows.
1) From Machine-A,A Java program connect to a QM in Machine-B.
2) The QM update an Oracle Database on Machine-C.
How can i do that in JAVA..?
Any kind of help is appreciated. _________________ Poetry with Programming |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 23, 2007 2:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You can't do XA with a standard client.
You need the Extended Transactional Client, which is available from IBM at extra cost. Contact your local IBM rep for details, costs, license, etc, etc
(Pun intended! ) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 23, 2007 2:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
But the Java code you use is going to be the same, with slightly different information passed to new MQQueueManager().
That doesn't create a queue manager!
Please read the Using Java manual. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
paatchu |
Posted: Tue Jan 23, 2007 4:10 am Post subject: |
|
|
Apprentice
Joined: 07 Sep 2006 Posts: 32
|
Well....
How i could figure out my installation had an MQ Extended Transactional Clients-installed or NOT?
I mean any command / behaviour.
I had both MQ-Client 6.0 Client & Server package, with me _________________ Poetry with Programming |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 23, 2007 4:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
paatchu wrote: |
How i could figure out my installation had an MQ Extended Transactional Clients-installed or NOT? |
By asking the person who installed it, or who's job it is to know what software is installed where, in order to ensure proper compliance with licensing.
Or by checking the OS level software install registry to see if it tells you what pieces are installed. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 23, 2007 4:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
paatchu wrote: |
How i could figure out my installation had an MQ Extended Transactional Clients-installed or NOT?
|
I think you'd know - the ETC license costs about the same as a queue manager license and for that reason is fairly rare!
If by "package" you mean the client that comes with the server, that's not the ETC. The ETC is a separate deliverable.
You don't say what platform you're on, but your best bet would be to check the installation log / registry / smit / etc _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PieterV |
Posted: Thu Mar 08, 2007 2:40 am Post subject: |
|
|
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
|
Vitor,
could you explain what is the difference betweend the ETC that comes with the installation of the server and the ETC that is delivered seperately? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 08, 2007 2:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
PieterV wrote: |
Vitor,
could you explain what is the difference betweend the ETC that comes with the installation of the server and the ETC that is delivered seperately? |
Vitor wrote: |
....the client that comes with the sever, that's not the ETC. The ETC is a separate deliverable. |
AKAIK the ETC is never bundled with the server. The client included with the server install is the standard client we all know and love, included for your convienience but also available free of charge from the IBM website.
The ETC is a separate product, purchased separately and delivered separately. From a totally personal perspective I struggle to see the cost/benefit case for using it; for what it costs you can get another server license and I believe you're better off getting another queue manager, clienting onto that and running the XA locally. This is just my view, I accept there are exceptions to this and other views may be equally valid.
Hope this clarifies the situation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PieterV |
Posted: Thu Mar 08, 2007 3:17 am Post subject: |
|
|
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
|
This is a part of the installation of the MQ server on Sun Solaris (SPARC).
Do you mean that no. 6 is not the real ETC?
Quote: |
Continue installation? [y,n,q] : y
1) WebSphere MQ Server
2) Man pages
3) Sample programs
4) WebSphere MQ Client libraries ( including Java, JMS and SOAP support)
5) IBM® 32-bit SDK for Solaris(TM), Java(TM) 2 Technology Edition, Version 1.4.2
6) WebSphere MQ Extended Transactional Client
7) Spanish message catalog
French message catalog
9) German message catalog
10) Japanese message catalog
11) Italian message catalog
12) Brazilian Portuguese message catalog
13) Traditional Chinese message catalog
14) Simplified Chinese message catalog
15) Korean message catalog
|
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 08, 2007 3:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
PieterV wrote: |
This is a part of the installation of the MQ server on Sun Solaris (SPARC).
Do you mean that no. 6 is not the real ETC?
|
Vitor wrote: |
AKAIK the ETC is never bundled with the server. |
More likely means I don't know far enough.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PieterV |
Posted: Thu Mar 08, 2007 3:30 am Post subject: |
|
|
Disciple
Joined: 04 Jan 2006 Posts: 164 Location: Belgium
|
np, i was just scared i installed the wrong thing and i had to order the ETC seperately. |
|
Back to top |
|
 |
Nigelg |
Posted: Thu Mar 08, 2007 5:42 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
You cannot use a client to perform an XA transaction where WMQ is the transaction manager. The XA client is solely for use where WMQ is a resource manager, and the transction is managed externally, e.g. by CICS, WAS, etc. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
|