The configurations of the Apache ActiveMQ input JMS event adapter are explained below. It can be configured with XML, map, JSON, and text input mapping types.
Table of Contents maxLevel 3
Excerpt | ||||
---|---|---|---|---|
| ||||
NOTE TO WRITERS: Add the TOC here.
|
...
Start ActiveMQ, and then start the product.
- Log in to the product's management console and click Configure.
- Click Input Event Adaptors in the Event Processor Configs menu, and then click Add Input Event Adaptor.
- Enter details as shown in the below example.
- Click Add Event Adaptor.
Anchor | ||||
---|---|---|---|---|
|
Follow the instructions below to configure ActiveMQ input JMS event adapter using a configuration file.
Create an XML file with the following ActiveMQ input JMS event adapter configurations. Input event adapter implementation must start with
<inputEventAdaptor>
as the root element.Code Block language html/xml <inputEventAdaptor name="activemqJmsInputAdaptor" statistics="disable" trace="disable" type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager"> <property name="java.naming.provider.url">tcp://localhost:61616</property> <property name="transport.jms.SubscriptionDurable">false</property> <property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property> <property name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property> <property name="transport.jms.DestinationType">topic</property> </inputEventAdaptor>
Add the XML file to
<PRODUCT_HOME>/repository/deployment/server/inputeventadaptors/
directory. Since hot deployment is enabled, you can simply add/remove files to deploy/undeploy to/from the server.
Info |
---|
After an adapter is successfully added, it gets added to the list of adapters displayed under Event Processor Configs in the Configure menu of the product's management console. Click Edit to change its configuration and redeploy it. This opens an XML-based editor allowing you to edit the event adapter configurations from the UI. Do your modifications and click Update . You can also delete it, enable/disable statistics or enable/disable tracing on it using the provided options in the UI. |
Configuring input JMS event adapter message properties
Excerpt | ||
---|---|---|
| ||
NOTE TO WRITERS: Link "Configuring Input JMS Event Adapter Message Properties" of the above text to the page titled the same. |