Yes, sorry Roger, we are running the Java application in batch from a
UNIX script on the MQ server machine. At some point we may port this
code to a J2EE environment (Sun CAPS). 

-----Original Message-----
From: MQSeries List [mailto:[EMAIL PROTECTED] On
Behalf Of Roger Lacroix
Sent: Thursday, September 06, 2007 3:25 PM
To: [email protected]
Subject: Re: XA Switch file for MQ and C compiler

Hi,

A couple of comments:

1) That article talks about binding mode connections (i.e. local QMgr)
and the queue manager acting as a resource coordinator.

2) Since I asked but you never answered, I take it that your Java
application is running outside of a J2EE container.


Now to the cost:  Do you have a licensed queue manager on the server
where you want to run the Java program? Because ETC is roughly 75% cost
of a full QMgr license.  

Of course, to use ETC your Java progam needs to run in a J2EE container
and this may not be what you are looking for.

Third, someone recently said that ETC is now incuded in the WMQ v6
Client.  I don't know if this is true but it is something to look into.


Regards,
Roger Lacroix
Capitalware Inc.
http://www.capitalware.biz


On Thu, 6 Sep 2007 14:52:26 -0400, "Heggie, Peter"
<[EMAIL PROTECTED]> wrote:
> My developer forwarded this link, it looks like MQ is acting as both
> resource and transaction, with either DB2 or Oracle. It requires the
> generation of a switch file and updating the qm.ini with pointers to
it.
> 
> 
>
http://www.ibm.com/developerworks/websphere/library/techarticles/0601_ri
> tchie/0601_ritchie.html
> 
> It keeps things simple, but puts us back in the position of requiring
an
> approved C compiler.
> 
> -----Original Message-----
> From: MQSeries List [mailto:[EMAIL PROTECTED] On
> Behalf Of Roger Lacroix
> Sent: Thursday, September 06, 2007 1:52 PM
> To: [email protected]
> Subject: Re: XA Switch file for MQ and C compiler
> 
> Hi,
> 
>> Can MQ or Oracle assume the role of transaction coordinator? 
> 
> Oracle is a broad term these days.  If you mean Oracle DB then no. 
> 
> Most of my experience is with Oracle DB v8 and v9. I have had minimal
> experience with 10G.  So, I am unsure if Oracle DB 10G can be
> transaction coordinator.
> 
> 
> Regards,
> Roger Lacroix
> Capitalware Inc.
> http://www.capitalware.biz
> 
> 
> On Thu, 6 Sep 2007 13:45:02 -0400, "Heggie, Peter"
> <[EMAIL PROTECTED]> wrote:
>> Can MQ or Oracle assume the role of transaction coordinator? WAS &
>> Weblogic are not involved in this interface. 
>> 
>> -----Original Message-----
>> From: MQSeries List [mailto:[EMAIL PROTECTED] On
>> Behalf Of Roger Lacroix
>> Sent: Thursday, September 06, 2007 1:25 PM
>> To: [email protected]
>> Subject: Re: XA Switch file for MQ and C compiler
>> 
>> Hi Peter,
>> 
>> For Java, you do not need the XA Switch file regardless of your
>> connection type (i.e. binding or client mode).
>> 
>> To do XA transaction in binding mode, you need local MQ, transaction
>> coordinator (i.e. WAS, WebLogic or Encina) and a DB.
>> 
>> To do XA transaction in client mode, you need a remote MQ, ETC
> (locally
>> installed), transaction coordinator (i.e. WAS, WebLogic or Encina)
and
> a
>> DB.
>> 
>> The last couple of clients I went to (over the last 2 years) had
> similar
>> setup:  MQ, WebLogic and Oracle (on Solaris).  Each was installed on
>> separate Solaris servers and the WebLogic server had MQ Client and
ETC
>> installed.  They run XA transactions successfully and I never created
> an
>> XA Switch file. 
>> 
>> To my knowledge, you only need the XA Switch file for procedural
>> languages.
>> 
>> 
>> Regards,
>> Roger Lacroix
>> Capitalware Inc.
>> http://www.capitalware.biz
>> 
>> 
>> On Thu, 6 Sep 2007 09:34:44 -0400, "Heggie, Peter"
>> <[EMAIL PROTECTED]> wrote:
>>> Hi Roger,
>>> 
>>> Sorry to be a middle man, and I must admit to not knowing much about
>> the
>>> subject, but here is the response I got from the developer. I do
want
>> to
>>> know more about the (XA) requirements.
>>> 
>>> "XA transaction can be used only when we connect in MQSeries binding
>>> mode and run the java code on the same machine
>>> as the MQ Server because it requires all the files(including the
>> switch
>>> files) that are installed with the server.
>>> 
>>> ETC is used if we connect in MQSeries client mode. (XA transactions
>>> cannot be executed using client mode without ETC) This  product
needs
>> to
>>> be installed on client machine."
>>> 
>>> We have not purchased the extended client with transaction support.
>>> 
>>> Peter 
>>> 
>>> -----Original Message-----
>>> From: MQSeries List [mailto:[EMAIL PROTECTED] On
>>> Behalf Of Roger Lacroix
>>> Sent: Wednesday, September 05, 2007 5:03 PM
>>> To: [email protected]
>>> Subject: Re: XA Switch file for MQ and C compiler
>>> 
>>> Hi Peter,
>>> 
>>> I'm a little confused. 
>>> 
>>> You need an XA Switch file for MQ and C compiler development, yes,
>> this
>>> is true.
>>> 
>>> For Java MQ and XA transactions, you do not need an XA Switch file
> but
>>> rather you need ETC and a transaction coordinator (i.e. WAS,
WebLogic
>> or
>>> Encina).
>>> 
>>> How or within what are you running the Java code?  Are you running
it
>> in
>>> a J2EE container?
>>> 
>>> 
>>> Regards,
>>> Roger Lacroix
>>> Capitalware Inc.
>>> http://www.capitalware.biz
>>> 
>>> 
>>> On Wed, 5 Sep 2007 15:53:02 -0400, "Heggie, Peter"
>>> <[EMAIL PROTECTED]> wrote:
>>>> Hello all,
>>>> 
>>>> Our developer is attempting to write Java code that calls Oracle AQ
>>> and
>>>> MQ Java in the same XA transaction. We seem to be stuck on creating
>>> this
>>>> 'switch' file. I think I understand its purpose - to provide
runtime
>>>> access to the proper libraries, functions and options that support
>>> these
>>>> calls. We are running on AIX with Oracle 10.2 and MQ 6.0. The make
>>> file
>>>> wants a C compiler (xlc -r), but we don't have that installed. Is
>> this
>>>> the Visual Age C compiler? I'm thinking that the swtich file is not
>>> that
>>>> complicated and that another C compiler could be used, like gnu. Am
> I
>>>> correct? I have found some references to this file on mqseries.net
>> and
>>>> elsewhere, but I'm not a C or Java programmer, so I'm still
puzzled.
>>>> 
>>>> Thank you,
>>>> Peter Heggie
>>>> 
>>>> 
>>>> **** For your information: KeySpan is now part of National
Grid.****
> 
>>>> 
>>>> 
>>>>
>>>
>>
>
************************************************************************
>>> ********
>>>> This e-mail and any files transmitted with it, are confidential to
>>>> National Grid and are intended solely for the use of the individual
>> or
>>>> entity to whom they are addressed.  If you have received this
e-mail
>>> in
>>>> error, please reply to this message and let the sender know.
>>>> 
>>>> 
>>>> 
>>>> To unsubscribe, write to [EMAIL PROTECTED] and,
>>>> in the message body (not the subject), write: SIGNOFF MQSERIES
>>>> Instructions for managing your mailing list subscription are
> provided
>>> in
>>>> the Listserv General Users Guide available at http://www.lsoft.com
>>>> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
>>>> 
>>> 
>>> To unsubscribe, write to [EMAIL PROTECTED] and,
>>> in the message body (not the subject), write: SIGNOFF MQSERIES
>>> Instructions for managing your mailing list subscription are
provided
>> in
>>> the Listserv General Users Guide available at http://www.lsoft.com
>>> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
>>> 
>>> **** For your information: KeySpan is now part of National Grid.****

>>> 
>>> 
>>>
>>
>
************************************************************************
>> ********
>>> This e-mail and any files transmitted with it, are confidential to
>>> National Grid and are intended solely for the use of the individual
> or
>>> entity to whom they are addressed.  If you have received this e-mail
>> in
>>> error, please reply to this message and let the sender know.
>>> 
>>> 
>>> 
>>> To unsubscribe, write to [EMAIL PROTECTED] and,
>>> in the message body (not the subject), write: SIGNOFF MQSERIES
>>> Instructions for managing your mailing list subscription are
provided
>> in
>>> the Listserv General Users Guide available at http://www.lsoft.com
>>> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
>> 
>> To unsubscribe, write to [EMAIL PROTECTED] and,
>> in the message body (not the subject), write: SIGNOFF MQSERIES
>> Instructions for managing your mailing list subscription are provided
> in
>> the Listserv General Users Guide available at http://www.lsoft.com
>> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
>> 
>> **** For your information: KeySpan is now part of National Grid.**** 
>> 
>> 
>>
>
************************************************************************
> ********
>> This e-mail and any files transmitted with it, are confidential to
>> National Grid and are intended solely for the use of the individual
or
>> entity to whom they are addressed.  If you have received this e-mail
> in
>> error, please reply to this message and let the sender know.
>> 
>> 
>> 
>> To unsubscribe, write to [EMAIL PROTECTED] and,
>> in the message body (not the subject), write: SIGNOFF MQSERIES
>> Instructions for managing your mailing list subscription are provided
> in
>> the Listserv General Users Guide available at http://www.lsoft.com
>> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
> 
> To unsubscribe, write to [EMAIL PROTECTED] and,
> in the message body (not the subject), write: SIGNOFF MQSERIES
> Instructions for managing your mailing list subscription are provided
in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
> 
> **** For your information: KeySpan is now part of National Grid.**** 
> 
> 
>
************************************************************************
********
> This e-mail and any files transmitted with it, are confidential to
> National Grid and are intended solely for the use of the individual or
> entity to whom they are addressed.  If you have received this e-mail
in
> error, please reply to this message and let the sender know.
> 
> 
> 
> To unsubscribe, write to [EMAIL PROTECTED] and,
> in the message body (not the subject), write: SIGNOFF MQSERIES
> Instructions for managing your mailing list subscription are provided
in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html

To unsubscribe, write to [EMAIL PROTECTED] and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html

**** For your information: KeySpan is now part of National Grid.**** 


********************************************************************************
This e-mail and any files transmitted with it, are confidential to National 
Grid and are intended solely for the use of the individual or entity to whom 
they are addressed.  If you have received this e-mail in error, please reply to 
this message and let the sender know.



To unsubscribe, write to [EMAIL PROTECTED] and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html

Reply via email to