Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This component is aimed at demonstrating the inmemory in memory launch of the component.

Default Behavior

...

Changes required to support in-memory launch

 

  1. The class com.fiorano.edbc.inmemorylaunch.InmemoryLaunch implements fiorano.esb.util.InMemoryLaunchable interface by providing the methods startup(String[] args) and stop().
  2. The attribute 'supported' for the element 'launchtype' in ServiceDescriptor.xml file is set as "7".
  3. 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>
  4. Under "servicerefs" element, make the following service reference changes:

    Code Block
    titleAdd
    <serviceref guid="TifosiJavaRTL" version="4.0" />
    Code Block
    titleRemove
    <serviceref guid="FioranoJavaRTL" version="4.0" />
  5. 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
  • To check the functionality of this component, it should be registered with the server.
  • The steps to register the samples is specified in the Sample Templates section.
Adaptavist ThemeBuilder EngineAtlassian Confluence