简体   繁体   English

如何在WSO2ESB和WSO2 MB中设置端口

[英]How to set port in WSO2ESB and WSO2 MB

Am working with WSO2 ESB 4.7.0 and WSO2 MB 2.2.0. 我正在使用WSO2 ESB 4.7.0和WSO2 MB 2.2.0。

I have made integration between WSO2 ESB and WSO2 MB by following the below link: 我按照以下链接在WSO2 ESB和WSO2 MB之间进行了整合:

https://docs.wso2.com/display/MB220/Integrating+WSO2+ESB https://docs.wso2.com/display/MB220/Integrating+WSO2+ESB

I have started the MB server successfully with port as shown below 我已经使用端口成功启动了MB服务器,如下所示

[2015-01-19 14:32:20,868]  INFO {org.wso2.andes.server.cluster.GlobalQueueManager} -  Starting Global Queue Worker for Global Queue : GlobalQueue_9
[Broker] BRK-1002 : Starting : Listening on TCP port 5675
[2015-01-19 14:32:26,132]  INFO {qpid.message.broker.listening} - [Broker] BRK-1002 : Starting : Listening on TCP port 5675
[Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8675
[2015-01-19 14:32:26,138]  INFO {qpid.message.broker.listening} -  [Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8675
[Broker] BRK-1004 : Qpid Broker Ready

And when i started ESB server it shows an error as shown below 当我启动ESB服务器时,它显示错误,如下所示

[2015-01-19 14:37:34,275]  INFO - AMQConnection Unable to connect to  broker at tcp://localhost:5672
 org.wso2.andes.transport.TransportException: Could not open connection
at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:120)
at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:398)

Am not sure but i think there is mismatch in port with which the esb is trying to connect to the broker,Is there any way to change this port an connect successfully to the broker..? 我不确定,但我认为esb尝试连接到代理的端口不匹配,有没有办法更改此端口连接成功到代理..?

Help me with this. 帮助我。

Since, You have 3 as the port offset, Please do the following 因为,您有3作为端口偏移,请执行以下操作

Open the <ESB_HOME>/repository/conf/JNDI.proerties file and point to the running Message Broker. 打开<ESB_HOME>/repository/conf/JNDI.proerties文件并指向正在运行的Message Broker。

Use carbon as the virtualhost. 使用carbon作为虚拟主机。 Define a queue called JMSMS . 定义一个名为JMSMS的队列。 Comment out the topic as it is not needed. 在不需要的情况下评论该主题。 But, in order to avoid getting javax.naming.NameNotFoundException: TopicConnectionFactory during server startup, point TopicConnectionFactory also to the Message Broker. 但是,为了避免在服务器启动期间获取javax.naming.NameNotFoundException: TopicConnectionFactory ,还要将TopicConnectionFactory指向Message Broker。

# register some connection factories
# connectionfactory.[jndiname] = [ConnectionURL]
connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5675'
connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5675'
# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]
queue.JMSMS=JMSMS
queue.StockQuotesQueue = StockQuotesQueue

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM