Connect to wildfly 8.2 hornetq from wildfly 10
akki192 Jun 3, 2016 12:24 PMI am migrating an old application which is currently running on jboss 5.1.2 to wildfly 10. The application is remotely consuming messages from a remote topic hosted on "wildfly 8.2 hornetq".
I have done following changes to my standalone.xml:
a. Added socket binding
<outbound-socket-binding name="messaging-remote">
<remote-destination host="wildfly-8.2-host" port="18080"/>
</outbound-socket-binding>
b. Created http-connector with socket binding:
<http-connector name="http-remote" endpoint="http-acceptor" socket-binding="messaging-remote"/>
c. created pooled-connection-factory.
<pooled-connection-factory name="activemq-ra-remote" transaction="xa" entries="java:/RemoteTestJMSProvider" connectors="http-remote" user="guest" password="guest"/>
My MDB is configured as:
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "jms/topic/Link"),
@ActivationConfigProperty(propertyName = "providerAdapterJNDI", propertyValue = "java:/RemoteTestJMSProvider"),
@ActivationConfigProperty(propertyName = "useDLQ", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "clientID", propertyValue = "Library"),
@ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"),
@ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = "Library.LinkingBean.wf"),
@ActivationConfigProperty(propertyName = "user", propertyValue = "guest"),
@ActivationConfigProperty(propertyName = "password", propertyValue = "guest"),
@ActivationConfigProperty(propertyName = "reconnectAttempts", propertyValue = "32"),
@ActivationConfigProperty(propertyName = "reconnectInterval", propertyValue = "900") //in seconds
})
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@ResourceAdapter("activemq-ra-remote")
public class LinkMDB implements MessageListener {
I see a warning message displayed in logs and I am not able to receive any messages.
2016-06-03 17:55:31,875 WARN [org.jboss.activemq.artemis.wildfly.integration.recovery] (MSC service thread 1-1) AMQ122018: Could not start recovery discovery on XARecoveryConfig [transportConfiguration=[TransportConfiguration(name=, factory=org-apache-activemq-artemis-core-remoting-impl-netty-NettyConnectorFactory) ?httpUpgradeEnabled=true&httpPpgradeEndpoint=http-acceptor&port=18080&localAddress=::&host=wildfly-8.2-host], discoveryConfiguration=null, username=guest, password=****, JNDI_NAME=java:/RemoteTestJMSProvider], we will retry every recovery scan until the server is available
I am able to listen messages on the same server using a standalone client. Any idea what I am doing wrong?