-
1. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
ataylor Sep 3, 2013 11:19 AM (in response to billhmoore)pooled connection factories are what they say, pooled and shared so setting the client id makes no sense. if you need to set it you should do it on the pooled connection factory.
-
2. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
billhmoore Sep 3, 2013 11:31 AM (in response to ataylor)I fully understand what you are saying. What I don't know and cannot find is how to set the client id in the connection pool?
Here is the configuration of the connection factory that I am currently using to publish messages from one AS7 server to another AS7 server with Hornetq running:
<pooled-connection-factory name="ConnectionFactory1Mgmt"> <connectors> <connector-ref connector-name="remote-jms-mgmt"/> </connectors> <entries> <entry name="java:/ConnectionFactory1Mgmt"/> </entries> </pooled-connection-factory> Within the first AS7 server, I will also need to subscribe to messages on a different topic. Not sure how to do this?
-
3. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
jmesnil Sep 3, 2013 11:36 AM (in response to billhmoore)William Moore wrote:
I fully understand what you are saying. What I don't know and cannot find is how to set the client id in the connection pool?
by adding
<client-id>MYCATR</client-id>
to the pooled-connection-factory element
-
4. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
billhmoore Sep 3, 2013 11:46 AM (in response to billhmoore)Thanks I have finally found that information in another discussion and that got me past the client ID error.
Now I am getting an error when I attempt to set the message listener:
This method is not applicable inside the application server.
Do I need to set the message listener?
-
5. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
jbertram Sep 3, 2013 11:53 AM (in response to billhmoore)Any connection acquired from a <pooled-connection-factory> via JNDI is only suitable for sending messages, not receiving them. If you want a message listener in the container I suggest you use an MDB. If you don't want an MDB and still want a message listener then use "java:/ConnectionFactory". I also recommend you read Messaging configuration - WildFly 8.
-
6. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
billhmoore Sep 3, 2013 12:04 PM (in response to jbertram)I had already started exploring the MDB option. The biggest issue with MDB is that I will need to externalize must of the annotations.
-
7. Re: How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7
jbertram Sep 3, 2013 12:08 PM (in response to billhmoore)Just use ejb-jar.xml to externalize your MDB configuration. No big deal.