-
1. Re: EJB 2.1 and MDB listening to remote queue on JBoss 6.1.0
jhd Oct 18, 2012 12:18 PM (in response to jhd)Here is a sample log entry from the server hosting the MDB:
11:09:59,690 INFO [HornetQActivation] awaiting topic/queue creation queue/EsbToTbot
11:10:01,688 INFO [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@10a5e71 destination=queue/EsbToTbot destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=8)
-
2. Re: EJB 2.1 and MDB listening to remote queue on JBoss 6.1.0
jhd Oct 18, 2012 2:31 PM (in response to jhd)EJB 2.1 is still supported in JBoss 6.1.0 is it not? If the answer is yes, then in theory there should be a way to make this work without porting to EJB 3.
-
3. Re: EJB 2.1 and MDB listening to remote queue on JBoss 6.1.0
jhd Oct 19, 2012 5:16 PM (in response to jhd)I was able to get this working by adding activation config properties to the MDB deployment descriptor. I updated the ejb-jar.xml file like the following:
<message-driven> <ejb-name>EsbMDB</ejb-name> <ejb-class>org.twia.esb.EsbMDB</ejb-class> <transaction-type>Container</transaction-type> <message-destination-type>javax.jms.Queue</message-destination-type> <activation-config> <activation-config-property> <activation-config-property-name>connectorClassName</activation-config-property-name> <activation-config-property-value>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>connectionParameters</activation-config-property-name> <activation-config-property-value>host=remoteJMShostname;port=5445</activation-config-property-value> </activation-config-property> </activation-config> </message-driven> No other configuration or code changes were necessary.