Custom Microservices will, by default, load a NetBeans-based UI in a separate process. To use the eclipse-based eStudio CPS, perform the following actions:

  1. Sources generated while creating Custom Microservices will be imported as a new Java Project in eStudio's workspace.
    Access the project from the Java perspective in eStudio.
     
  2. By default, the generated component will have a swing based CPS.
    To generate an SWT/JFace based CPS, create a new class ConfigLauncher.java in the imported Java project as shown below:



  3. Provide the following details in the New Java Class wizard:

    1. Name: Name of the class

      Example
      ConfigLauncher
    2. Superclass: The class that can be inherited by other classes 

      Example

      Icon

      The GenericConfigWizard class provides the basic implementation of the multi-paged wizard which will be launched when the component CPS is launched from an Event Process.

  4. Add a no-args constructor for the ConfigLauncher.java class as shown in the sample code below.

    Sample Code
  5. Before registering the component, the launcher class needs to be changed from the default Property Sheet to the newly created ConfigLauncher. Replace com.fiorano.esb.service.cps.SampleComponentPropertySheet with the qualified name of the ConfigLauncher class (here com.fiorano.esb.service.cps.ConfigLauncher) in the following locations:
    1. The value of the field execution > cps > launcher in the resources/ServiceDescriptor.xml file
    2. The value of cpsClass in the deploy target in the Common.xml file
       
  6. Modify the classpath target in common.xml file as shown below.



  7. Register the component by running ant register in the component directory and open the CPS from eStudio.

    Icon

    Refer the Building and Deploying Service section.

Adaptavist ThemeBuilder EngineAtlassian Confluence