Configuring Destination Resource.

Hi,

I am working on SUNONE Server 8.0. I need to configuration details for the list below:

1. By default my client is able to reestablish a connection when JMS is restarted. Is there any setting to be done on SUN server console to disable this feature.

2. How do i make the SUN JMS to store the message when SUN App. server is shutdown & publish the same when started? Is there any setting to be done.

It would be helpful if provided some inputs on this. Documents on the same would be fantastic.

Thanks in Advance.

[556 byte] By [Tarus] at [2007-11-26 11:05:24]
# 1

Hi!

1.- For the firs issue, the objet in charge of that behaviour is the QueueConnectionFactory, and depending how you connect to imq (ldap, jndi, directly), you need to set a property for that.

In case of a direct connection it would be:

com.sun.messaging.QueueConnectionFactory fq=new com.sun.messaging.QueueConnectionFactory();

fq.setProperty("imqBrokerHostName", BrokerHost);

fq.setProperty("imqBrokerHostPort", BrokerPortI);

fq.setProperty("imqReconnect", "true");

In case of a JNDI connection:

- Open the object store using imqadmin, the queueConnectionFactory you are using, and set the property

- In the imqadmin help each parameter have nice comments about how they work.

As a final comment you can also setup the time interval for the client to retry the connection to the broker (also to try a different broker, balance broker).

2.- That is automatic, don't worry, we have seen several issues with imq, but the shutdown-start sequence work fine (also in hard conditions, with heavy load, about 20 message/sec)

hope that help!, by!

BuZMan at 2007-7-7 3:19:33 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...