users@genericjmsra.java.net

RE: RE: Re: Problem with with SJAS 9 and WebSphere MQ 5.3

From: Janardhanan, Ajith \(AJANARDH\) <"Janardhanan,>
Date: Thu, 29 Jun 2006 08:44:45 -0400

I configured a QCF,XQCF and a Queue in the JMSadmin:

   
 def xaqcf(XAQCF) hostname(localhost) port(1414) channel(JMS.CHANNEL)
transport(CLIENT) qmanager(AMX3QM2LIV)

 def xaqcf(XAQCF) hostname(localhost) port(1414)
channel(SYSTEM.DEF.SVRCONN) transport(CLIENT) qmanager(AMX3QM2LIV)

 def q(Q1) queue(JMS1.QUEUE) qmanager(AMX3QM2LIV)

 
In AppServ,

asadmin create-connector-connection-pool --raname genericra
--connectiondefinition javax.jms.QueueConnectionFactory --property
ConnectionFactoryJndiName=XAQCF xapool

asadmin create-connector-connection-pool --raname genericra
--connectiondefinition javax.jms.QueueConnectionFactory --property
ConnectionFactoryJndiName=QCF mypool

asadmin create-connector-resource --poolname xapool jms/MyXAQCF
asadmin create-connector-resource --poolname myool jms/MyQCF

asadmin create-admin-object --raname genericra --restype javax.jms.Queue
--property DestinationJndiName=Q1 jms/FromQ


 My ejb-jar.xml and sun-ejb-jar.xml are attached. Where and how would I
specifiy to not use transaction mode "Required" in the descriptor ?


Thanks
Ajith




-----Original Message-----
From: Binod P G [mailto:Binod.Pg_at_Sun.COM]
Sent: Thursday, June 29, 2006 1:42 AM
To: users_at_genericjmsra.dev.java.net
Subject: Re: RE: Re: Problem with with SJAS 9 and WebSphere MQ 5.3



----- Original Message -----
From: "Janardhanan, Ajith (AJANARDH)" <AJANARDH_at_arinc.com>
Date: Thursday, June 29, 2006 10:48 am
Subject: RE: Re: Problem with with SJAS 9 and WebSphere MQ 5.3
To: users_at_genericjmsra.dev.java.net

>
>
> I donot have any resource operation in my mdb, except that the MDB has

> to read the message from the MQ queue, and propagate the read message
> to somewhere, by calling the webservice and the propagated message is
> deleted from the queue. I do not send a reply nor do I use a database.

> Do these set of operations require SupportsXA ?

It should be fine to use SupportsXA=false in this case.

>
>
> In my MDB onMessage() method, Im reading the message and calling the
> webservice. I have an empty MDB constructor, I donot have any other
> methods in the mdb.
>
> Now, I tried SupportsXA=false , the pool created in the AppServer to
> point to the XAQCF created using JMSAdmin and while deploying the mdb
> I receive the error "SupportsXA is false and MDB has container managed

> transaction" and the ejb is not loaded. Is there anything else to be
> configured like changing any of the generated xml files?

Please configure a QCF and XAQCF in JMSAdmin and configure the MDB
deployment descriptor to not use transaction mode "Required"

- Binod.