Hi,
I have a question and didn't found a suiteable answer.
I have build a WebApplication which uses Seam and I programmed an access to the build in JBoss MQ using jms.
I configure the queues like that ( destination-service.xml )
<mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=testQueue">
<depends optional-attribute-name="DestinationManager">
jboss.mq:service=DestinationManager</depends>
<attribute name="RedeliveryDelay">60000</attribute>
<attribute name="RedeliveryLimit">10</attribute>
<!-- Counter Historie fuer die letzten 7 Tage, -1 == unlimited, 0 == disabled -->
<attribute name="MessageCounterHistoryDayLimit">7</attribute>
</mbean>
To read messages fron that queue I programmed a simple Reader that overrides the MessageListener
ctx = new InitialContext ();
connectionFactory = (QueueConnectionFactory) ctx.lookup ("ConnectionFactory");
queue = (Queue) ctx.lookup (queuename);
connection = connectionFactory.createQueueConnection ();
.. and so on
.
So now I want to access to a remote queue with runs on a different server srv1.
There should be a possibility to to that without changing the code but changing the configurijng xml files.
Does anybody know how exactly that workes.
Thanks a lot.