Posts

Showing posts from February, 2016

Working with WSO2 ESB Event Sink and WSO2 DAS

Image
In this post I am going to point out how to integrate WSO2 ESB and WSO2 DAS to send events from ESB to the DAS server. In order to achieve this I am going to use WSO2 ESB v4.9.0 and WSO2 DAS v 3.0.0. In wso2 ESB you can publish events through publish event mediator and event sinks. In order to achieve our task first we need to create an event receiver and an event stream at the DAS end. Also we create an event sink at the ESB end, and use publish event mediator to publish our event to the DAS’s event receiver.
Creating an event stream Log on to DAS server and navigate to streams section as follows.



You can add three types of attributes for the event. Payload data Attributes, Meta Data Attributes and correlation data attributes. In this post I am just using the payload data attributes only. Next persist the event stream.




Creating an Event Receiver Now we need to create an event receiver to receive the events we send from the ESB end. click on the Receivers tab and you will be navigated to t…

Enabling per car file Logging in WSO2 ESB 4.9.0

In WSO2 ESB you can deploy multiple ESB artifact with a car file. In WSO2 ESB 4.9.0 you can get logs identified specially for esb artifacts deployed from a car file. In order to enable this feature you can follow the following steps.


Locate the log4j.properties configuration file at CARBON_HOME/repository/conf directoryComment log4j.appender.CARBON_CONSOLE.layout=org.apache.log4j.PatternLayout entryAdd log4j.appender.CARBON_CONSOLE.layout=org.apache.synapse.AppenderWrapper entry instead
Supported artifact typesMQTT Inbound EndpointsProxy ServicesAPIsSequencesEndpointsInbound EndpointsVfs Inbound EndpointsHttp Inbound EndpointsHttps Inbound endpointsKafka inbound endpointsHL7 Inbound Endpoints