Service



กก

  • Create a new Service
  • import org.jmin.kernel.framework.ext.J2eeAbstractService;

    public calss MyService extends J2eeAbstractService{

    }

  • Compile
  • Java file

    This step will generate a Java class

    กก

  • Define Description
  • //file:service.xml

    <?xml version="1.0"?>
     <service id="admin">
      <components>
       <component id="admin" type="service">
       <class>MyService</class>
      </component>
    </service>

    notes: admim is a super service to deploy your service

    กก

  • Make Jar file

    Put MyService class file in the current folder, and create a folder with name:META-INF,then put the service.xml file to the sub folder. The make a jar file and put all content from the current folder into the jar file.

  • Deploy service

    Copy the jar file from the above step to Jmin deploy folder.


    Copyright © 2006 . All Rights Reserved.