Use ActiveMQ as Event Broker in WSO2 ESB - wso2

In my wso2 esb 4.5.0-environment I want to send messages to ActiveMQ via the event mediator.
By default, the event mediator is connected to an internal, memorybased eventbroker in wso2 esb.
There is a possibility to change the event broker to WSO2 Message broker. This change is achieved by editing the file $wso2esb_home/repository/conf/event-broker.xml.
In the file there is an example config for WSO2 MB, but not for ActiveMQ.
What are the configuration settings for ActiveMQ as eventbroker?

We ended up solving this issue by developing a custom mediatior that communicates with ActiveMQ using JMS.

Related

Wso2 API Manager : API Produce and Consume JMS Messages

I have following requirement, is this possible to achieve in WSo2 API Manager. Please advise. I got few article/pages with information on how to post request to message queue but none for how to consume message.
UI client calls a REST API exposed on the API gateway.
The backend service actually providing the implementation is a module
This module reads from a MQSeries queue an XML message, processes it and responds back to an outgoing queue.
So API gateway must be able to transform the REST/JSON payload to an XML payload and put it on the MQ Series queue
Wait synchronously and pick up response from another MQSeries queue.
APIM does not support consuming JMS messages OOTB. But WSO2 ESB. See https://docs.wso2.com/display/ESB500/ESB+as+a+JMS+Consumer
However, since APIM has ESB features installed by default, you should be able to deploy such a JMS consuming proxy in APIM too.
Have a try and post if you face any issues.

How To Consume JMS Queue From WSO2 REST API

I am using WSO2 EI 6.1.1. I am trying to consume Active MQ queue from inside the WSO2 REST API, but unable to achieve it. I don't want to use the proxy service of WSO2. Please provide some input.
WSO2 provides the JMS connector. Can you try with this?

WSO2 enable transport from Carbon Application

To use some transports in WSO2 esb you have to edit the ESB_HOME/conf/axis2.xml
Like in this tutorial you have to uncomment the email transport.
Is there a way to configure a transport in Carbon application developed in WSO2 Developer Studio, without editting the axis2.xml?
When a request comes to ESB it first hits to axis2 level. Then the transport is selected from axis2 and then request goes to synapse level.So any way we need to edit the axis2.xml to enable any transport for that request.

How to monitor webmethod by using WSO2 BAM?

I have integrated WSO2 ESB and BAM. Greatly, I'm able to monitor the Service Proxy. But I wonder if there is anyway to monitor the operator/WebMethod of proxy. Please give me some advice.
I already use Bam mediator to collect ESB data for monitoring Webmethod. But my problem is there is not payload_request_count/response_count... data to sent to bam_service_data_publisher. Whereby the dashboard is always empty.
So how could I do to send those properties?
You can add the BAM mediator to a sequence (when adding a mediator, choose Agent -> BAM) and specify the BAM server profile and stream you want to use to start capturing and sending data events to the BAM server. Be sure to enable statistics on the sequence to start collecting the data.
https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator
https://docs.wso2.com/display/ESB481/BAM+Mediator
In addition you can use Api Manager to control and monitor your web method.
http://wso2.com/api-management/

WSO2 ESB API payload Security

I developed some API in WSO2 ESB server.I need to pass encrypted data to my resource server through the ESB. But i need to update data (payload) while request reach in ESB apart of my business.Is there any solution .any help please ?
According to the requirement you have mentioned here you can update data in the payload inside the ESB with the help of a Payload Factory mediator.
As an example, please refer documentation [1] Section of “Using WSO2 ESB to modify messages with text content".
Encrypting the data/payload inside the WSO2 ESB, does not support Out Of the Box.
As a suggestion, I would suggest to implement the scenario with the help of the transport layer by Enabling SSL profiling feature with WSO2 ESB which will communicate with a resource server in a safe manner.
For more information on SSL profiles in WSO2 ESB, please visit documentation [2].
[1] https://nadeesha678.wordpress.com/tag/wso2-esb/
[2] http://pathberiya.blogspot.com/2010/07/ssl-profiles-in-wso2-esb.html