简体   繁体   English

使用 API 代替 wso2 ei 消息代理中的 Proxy

[英]Use API instead of Proxy in wso2 ei message broker

Is it possible use api instead of proxy in communication between message broker and ei on wso2?在 wso2 上的消息代理和 ei 之间的通信中是否可以使用 api 而不是代理? I've studied about connection message broker and enterprise integrator, but in all documents implementation was with proxy service.我研究过连接消息代理和企业集成器,但在所有文档中都是通过代理服务实现的。 So, because of authentication and some topics related to api in wso2 I need to implement api instead of proxy service.因此,由于身份验证和 wso2 中与 api 相关的一些主题,我需要实现 api 而不是代理服务。 How I can implement and connect to message broker on enterprise integrator with api?如何使用 api 在企业集成器上实现和连接消息代理?

It's possible to send message from an EI API to the message broker but not consume them.可以从 EI API 向消息代理发送消息,但不能使用它们。

Most basic sending setup:最基本的发送设置:

 <endpoint>
     <address uri="jms:/<queueName>?transport.jms.ConnectionFactoryJNDIName=myQueueConnectionFactory&transport.jms.DestinationType=queue"/>
  </endpoint>

For consuming you will need a proxy.为了消费,您将需要一个代理。

I don't know your exact use case of course but usually in these kinds of situations the API will forward to a queue and the mediation will be handled by a proxy afterwards.我当然不知道您的确切用例,但通常在这种情况下,API 将转发到队列,之后将由代理处理调解。

https://docs.wso2.com/display/EI610/JMS+Support https://docs.wso2.com/display/EI610/JMS+Support

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

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