...
This component is aimed at demonstrating the inmemory in memory launch of the component.
Default Behavior
...
Changes required to support in-memory launch
- The class com.fiorano.edbc.inmemorylaunch.InmemoryLaunch implements fiorano.esb.util.InMemoryLaunchable interface by providing the methods startup(String[] args) and stop().
- The attribute 'supported' for the element 'launchtype' in ServiceDescriptor.xml file is set as "7".
The service-export ant task (present in the target ?/deploy?/) in the component?'s common.xml file is changed as shown below:
Code Block <?xml version="1.0" encoding="UTF-8"?/> <service-export destfile="export.zip" servicefile="etc/ServiceDescriptor.xml" resourcesfile="etc/resources.properties" executionClass="com.fiorano.edbc.inmemorylaunch.InmemoryLaunch" inMemoryClass="com.fiorano.edbc.inmemorylaunch.InmemoryLaunch" defaultLogModule="com.fiorano.edbc.inmemorylaunch.inmemoryLaunch"> <fileset dir="${deploy.dir}"> <include name="${jar.path}" /> </fileset> </service-export>
Under "servicerefs" element, make the following service reference changes:
Code Block title Add <serviceref guid="TifosiJavaRTL" version="4.0" />
Code Block title Remove <serviceref guid="FioranoJavaRTL" version="4.0" />
- InmemoryLaunchMessageListener.java
Send logic is implemented in the onMessage(..) method to send message onto the output port.
By default, it sends the message received on input at the input port to the output port.
Note |
---|
|
Overview
Content Tools
ThemeBuilder