Hi Sushmita
I see in your previously attached setup-ibmmq.sh
* $apppath/bin/asadmin create-connector-connection-pool --raname
genericra --connectiondefinition javax.jms.QueueConnectionFactory
--transactionsupport NoTransaction --property
ConnectionFactoryJndiName=XAQCF1 qcpool
* $apppath/bin/asadmin create-connector-resource --poolname qcpool
jms/MyQueueConnectionFactory
* $apppath/bin/asadmin create-connector-connection-pool --raname
genericra --connectiondefinition javax.jms.TopicConnectionFactory
--transactionsupport NoTransaction --property
ConnectionFactoryJndiName=XATCF1 tcpool
* $apppath/bin/asadmin create-connector-resource --poolname tcpool
jms/MyTopicConnectionFactory
specifying in 'create-connector-connection-pool' -
* --transactionsupport NoTransaction
* --property ConnectionFactoryJndiName=XAQCF1
Why are these needed? Especially I don't see XAQCF1 in the domain.xml, for
* --property ConnectionFactoryJndiName=XAQCF1
Can I specify the following instead ?
* --transactionsupport XATransaction
Thanks
Max
Sushmita Sharma wrote:
>Hi Max,
>I've attached a sample sun-ejb-jar.xml for mdb and a
>setup script which creates connector connection pool
>and resources and resource adapter config in jndi
>mode. Hope this will help.
>
>Summary of steps -
>1. Create queue manager, start queue manager, create
>queue conn factory and queues in wmq
>2. In appserver, create resource adapter config and
>deploy resource adapter
>3. Update server classpath for wmq classes
>4. Create connector-connection-pool, resource and
>admin object
>5. Add resource adapter config in mdb deployment
>descriptor
>
>Please refer to the attached files.
>
>Regards,
>Sushmita.
>
>
# point the apppath to a suitable server installation dir
#apppath=/space/sushmita/s1as9-installations
apppath=/mqm/SUNWappserver
$apppath/bin/asadmin delete-resource-adapter-config genericra
$apppath/bin/asadmin undeploy --cascade=true genericra
$apppath/bin/asadmin create-resource-adapter-config --user admin --property SupportsXA=false:ProviderIntegrationMode=jndi:UserName=mqm:Password=abc123:JndiProperties=java.naming.factory.url.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\:\\/\\/opt\\/tmp genericra
$apppath/bin/asadmin deploy $apppath/lib/addons/resourceadapters/genericjmsra/genericra.rar
$apppath/bin/asadmin create-connector-connection-pool --raname genericra --connectiondefinition javax.jms.QueueConnectionFactory --transactionsupport NoTransaction --property ConnectionFactoryJndiName=XAQCF1 qcpool
$apppath/bin/asadmin create-connector-resource --poolname qcpool jms/MyQueueConnectionFactory
$apppath/bin/asadmin create-connector-connection-pool --raname genericra --connectiondefinition javax.jms.TopicConnectionFactory --transactionsupport NoTransaction --property ConnectionFactoryJndiName=XATCF1 tcpool
$apppath/bin/asadmin create-connector-resource --poolname tcpool jms/MyTopicConnectionFactory
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Queue --property DestinationJndiName=MDB_QUEUE MDB_QUEUE
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Topic --property DestinationJndiName=MY_TOPIC MY_TOPIC
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Queue --property DestinationJndiName=MY_QUEUE MY_QUEUE
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Queue --property DestinationJndiName=MDB_QUEUE_REPLY MDB_QUEUE_REPLY
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Topic --property DestinationJndiName=MDB_TOPIC MDB_TOPIC
$apppath/bin/asadmin create-admin-object --raname genericra --restype javax.jms.Queue --property DestinationJndiName=DMD DMD