WSO2 ESB mediator implementation of Aino.io logging agent.
What is Aino.io and what does this Agent have to do with it?
Aino.io is an analytics and monitoring tool for integrated enterprise applications and digital business processes. Aino.io can help organizations manage, develop, and run the digital parts of their day-to-day business. Read more from our web pages.
Aino.io works by analyzing transactions between enterprise applications and other pieces of software. This Agent helps to store data about the transactions to Aino.io platform using Aino.io Data API (version 2.0). See API documentation for detailed information about the API.
- Oracle Java 7
- WSO2 ESB (Tested with 4.7.0, 4.8.X and 4.9.0)
Before using the agent, it must be configured and copied to directory where ESB can find it.
After installing and configuring, the agent can be used with ainoLog
mediator.
Get the dependency snippet from here.
Copy the AgentWso2ESB-x.y.jar
to $WSO2_ESB_HOME/repository/components/dropins/
.
As WSO2 ESB agent uses Java agent, it must be configured according
to Java Agent Configuration.
Java agent configuration should be in $WSO2_ESB_HOME/repository/conf/ainoLogMediatorConfig.xml
, where
$WSO2_ESB_HOME
is your WSO2 ESB installation directory.
Additionally, one configured 'application' must have key esb
.
This instruction is for Chrome browser so if you are using another browser, please google how to export a ssl certificate from a site with your browser.
Open the site in the Chrome browser, and then click the small lock icon beside the URL in the address bar. Press Details
and the developer toolbar opens in the lower part of the browser. Press View certificate
. In the popup drag from the certificate icon and drop the certificate to the folder $WSO2_ESB_HOME/repository/resources/security/
. A file named *.aino.io.cer
was created.
Then import the created *.cer file to the keystore. Check the current keystore password from $WSO2_ESB_HOME/repository/conf/axis2/axis2.xml
(search for parameter called "truststore"). Then run command and give the password:
keytool -import -alias aino.io -file *.aino.io.cer -keystore client-truststore.jks
<ainoLog status="success">
<to applicationKey="app02" />
</ainoLog>
Only from
or to
field is allowed, as the mediator automatically sets the other to esb
.
<ainoLog status="success">
<operation key="update" />
<message value="success" />
<ids expression="//order/orderId" typeKey="dataType01" />
<ids expression="//order/customerId" typeKey="dataType02" />
<to applicationKey="app02" />
<payloadType key="subInterface01" />
<!-- Property fields can be used to send additional information (showed in metadata section in Aino.io)-->
<property expression="//someXpath" name="someProp" />
<property expression="//someOtherXpath" name="someOtherProp" />
<property expression="//someThirdXpath" name="someThirdProp" />
</ainoLog>
All 'keys' must match keys configured in Aino configuration file. Please note that the order of the configuration elements (child elements of ainoLog) must be as specified above (at least for now).
- Java 7
- Maven 3.X
- WSO2 ESB
Copyright © 2016 Aino.io. Licensed under the Apache 2.0 License.