Hello,
You can't use invm connector to connect to a remote queue. As the name implies this connector is used when the client and the queue are in
the same (j)vm.
Le 27/12/2022 à 11:31, praneeth kumar a écrit :
> Hi Team,
>
> I am trying to connect JMS Queues remotely from IDE and stuck with below issues.
> source code is followed with reference of article to connect JMS Queues remotely
>
> Article :
https://github.com/wildfly/quickstart/tree/main/helloworld-jms
>
> JDK Version Used = 1.8
> Wildfly Used = 26.1.2.Final
>
> *Any help will be appreciated.*
>
> Error Trace :
> factory:ActiveMQConnectionFactory [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=null,
> factory=org-apache-activemq-artemis-core-remoting-impl-invm-InVMConnectorFactory) ?serverId=0], discoveryGroupConfiguration=null],
> clientID=null, consumerWindowSize=1048576, dupsOKBatchSize=1048576, transactionBatchSize=1048576, readOnly=false, EnableSharedClientID=false]
> j*avax.jms.JMSException: Failed to create session factory*
> at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:882)
> at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:350)
> at org.demo.Configuration.createQueueAgent(Configuration.java:65)
> at org.demo.IResClient.main(IResClient.java:30)
> *Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available
> servers.]
> at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:703)
> at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:880)*
> ... 3 more
>
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/wildfly/f064469a-ea59-40bf-8165-778bc04f09f3n%40googlegroups.com
> <
https://groups.google.com/d/msgid/wildfly/f064469a-ea59-40bf-8165-778bc04f09f3n%40googlegroups.com?utm_medium=email&utm_source=footer>.