users@genericjmsra.java.net

Multiple resource-adapters with GenericJMSRA

From: Achten Geert <Geert.Achten_at_cegeka.be>
Date: Wed, 5 Dec 2007 10:23:02 +0100

Hi,
 
we're trying to integrate with both MQSeries and Sun Java System Message Queue. Both integrations work flawless when used individually. However if we try to combine them, things go wrong. Apparently the GenericJMSRA uses the resource-adapter-config of IMQ when connecting to MQSeries.
 
In the code we see that the DestinationAdapter uses a static field (returned by getInstance()). This static field can only be initiliazed once (per classloader), and so contains the wrong configuration. We are deploying the resource adapter on the container level.
 
Is there a way to use GenericJMSRA to connect to multiple brokers?
 
Configuration information (GenericJMSRA version 1.6 on SJSAS 8.1_02 b19-p08)
-------------------------
 
asadmin create-resource-adapter-config --user admin --passwordfile "C:\Documents and Settings\bkdevel\.asadminprefs" --property SupportsXA=true:ProviderIntegrationMode=javabean:ConnectionFactoryClassName=com.sun.messaging.ConnectionFactory:\CommonSetterMethodName=setProperty:UserName=guest:Password=guest:\QueueConnectionFactoryClassName=com.sun.messaging.QueueConnectionFactory:\TopicConnectionFactoryClassName=com.sun.messaging.TopicConnectionFactory:\QueueClassName=com.sun.messaging.Queue:TopicClassName=com.sun.messaging.Topic:\LogLevel=info:UserName=guest:Password=guest:XAQueueConnectionFactoryClassName=com.sun.messaging.XAQueueConnectionFactory:\XATopicConnectionFactoryClassName=com.sun.messaging.XATopicConnectionFactory:\XAConnectionFactoryClassName=com.sun.messaging.XAConnectionFactory genericra_imq
...
asadmin create-admin-object --user admin --passwordfile "C:\Documents and Settings\bkdevel\.asadminprefs" --raname genericra_imq --restype javax.jms.Queue --property DestinationProperties=imqDestinationName\\=BatchDMQ jms/BatchDMQ
 
create-resource-adapter-config --port ${appserv.port} -s=false ${appserv.target} --property SupportsXA=true:ProviderIntegrationMode=jndi:JndiProperties=java.naming.security.authentication\\=none,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\://${bindingsURLEscaped}:Loglevel=info:RMPolicy=OnePerPhysicalConnection genericra

...

create-admin-object --port ${appserv.port} -s=false --raname genericra --restype javax.jms.Queue ${cluster.target} --property DeadMessageDestinationJndiName=com.ardatis.ventouris.VentourisDeadMessageQueue jms/RSVZMQDeadMessageQueue

Any help would be appreciated,

Kind regards,

Geert


______________________________________________________________________

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager at : systeembeheer_at_cegeka.be or call +32-(0)11-240234.
This footnote also confirms that this email message has been swept by Sophos for the presence of computer viruses.
______________________________________________________________________