Some background - we are using genericjmsra since there is a bug
related to shared subscriptions on topics in a cluster with jmsra.
The log shows that imqAddressList is set to both of them (correctly)
but its still trying to connect to localhost:7676 so I'll try it
but are you sure its AddressList? I was going to try
imqConnectionURL.
Also, don't I need to escape the value since it contains a ',' and
ConnectionFactoryProperties is a comma-separated list.
Brian
----- Original message -----
From: "Ramesh" <Ramesh.Parthasarathy_at_Sun.COM>
To: users_at_genericjmsra.dev.java.net
Date: Tue, 16 Dec 2008 21:15:40 +0530
Subject: Re: Changing jmsra to genericjmsra - broker connection properties
Hi Brian,
You are correct in using the ConnectionFactoryProperties, and the
value should be AddressList=mq://host1:50014/,mq://host2:50014/
Please escape the "/" and ":" if you are using asadmin command line option
This can be configured as an RA property while creating the resource
adapter config, so that all connection factories would get this value,
and each connection factory (gra connector resource) can be overridden
if required.
Just like to highlight one point (which you might have already figured
out), if you use jmsra then all the addresses of the brokers in the
cluster are automatically configured in your connection factory without
having you to specify them explicitly. When you use generic ra you have
to explicitly configure all the brokers in the connection factory (like
your example).
Thanks
-Ramesh
Brian Repko wrote:
> I'm trying to switch from jmsra to genericjmsra but still connecting
> to the
> OpenMQ brokers started with the cluster. We have multiple clusters, each
> with 2 instances. JMS is setup as LOCAL but the ports are not the
> default.
>
> The RAR is now getting connection errors since it is trying to connect to
> localhost 7676. The imqAddressList seems to be set but the imqBrokerHost
> and imqBrokerHostPort are set to localhost 7676 and the imqConnectionURL
> is http://localhost/imq/tunnel
>
> Is there anyway to get the the connection factory to connect to the
> brokers
> listed in the imqAddressList?
>
> Is this an RA configuration property (ConnectionFactoryProperties?)
> and can
> we override these at the ConnectionFactory level rather than the RAR?
>
> Do I override imqConnectionURL or imqBrokerHost and imqBrokerHostPort?
> I think I should set imqConnectionURL since this connecting to a
> cluster of
> brokers. I'm also not sure how to specify commas in the value since
> the value
> is already a comma-delimited list. I can look at the source for
> that...I'm thinking
> that the following will do it
>
> Name = ConnectionFactoryProperties
> Value = imqConnectionURL="mq://host1:50014/,mq://host2:50014/"
>
> We are using javabean integration.
>
> Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net