Tag: activemq artemis

使用Core API连接到ActiveMQ Artemis Docker容器

我正在尝试使用ActiveMQ Artemis Core API连接到Docker容器中运行的ActiveMQ Artemis。 我正在使用下面的代码来尝试连接。 Map<String,Object> connectionParams = new HashMap<String, Object>(); connectionParams.put(TransportConstants.PORT_PROP_NAME, "61616"); connectionParams.put(TransportConstants.HOST_PROP_NAME, "localhost"); TransportConfiguration tc = new TransportConfiguration(NettyConnectorFactory.class.getName(),connectionParams); ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(tc); ClientSessionFactory queueFactory = locator.createSessionFactory(); 运行时,当我尝试创build会话工厂时,出现以下错误。 ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.] 在尝试连接到ActiveMQ Artemis代理时,似乎是缺less一个关键的configuration步骤。 有一个XML文件,我需要放置在我的Java客户端应用程序的某个地方,或者我可以在代码中设置适当的设置? AtiveMQ Artemis的Docker镜像我正在使用: https://github.com/vromero/activemq-artemis-docker

Wildfly:AMQ214016:无法从nattednetworking上的客户端创buildnetty连接java.nio.channels.UnresolvedAddressException

我在Docker容器(Container-A)中安装了wildfly 10实例。 如果我试图从同一个引擎(Server-B,引擎)的其他容器中查找队列,一切正常。 我有问题(请参阅下面的跟踪),而是尝试从位于引擎的同一networking上的虚拟机(Server-C)使用映射到容器的端口7080上的服务器B的IP地址8080端口。 我尝试打开从Server-C到Container-A的Telnet连接(使用服务器B的IP地址和7080端口),连接看起来没问题。 谁能帮我?? C:\App>java -jar my-jar.jar log4j:WARN No appenders could be found for logger (com.myApp.S etUpBowcaster). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in fo. 2017-05-30 18:44:01 INFO SetUpBowcaster:? – PROCESSORS BUSES INITIALIZATION 2017-05-30 18:44:01 INFO xnio:93 – XNIO version 3.3.4.Final 2017-05-30 18:44:01 INFO nio:55 – XNIO […]