Create a service component entity

Before you can install the service component in a server, you must create a service component entity using the Management Console or a configuration script.

StepsCreating a service component entity with the Management Console

  1. Highlight the Services Components folder and click Add. The New Service Component wizard launches. Specify the service component name.

  2. Configure the properties listed in Table 4-1.

StepsCreating a service component entity with a configuration script

  1. Create a configuration script like the example below.

  2. Run the configure target to define the service component.

Example service component configuration script This Ant script creates a service component named MyService and installs it in the default server configuration. For details on the properties, see Table 4-1.

<?xml version="1.0"?>
<project name="create-service-comp" default="configure">
  <import file="ant-config-tasks.xml"/>
  <target name="configure">
<setProperties serviceComponent="MyService" merge="false">

        <property name="component" value="ejb.components.my_ejb_service.MyEJBServiceRemote"/>
        <property name="dependsOn" value="JaguarServer"/>
        <property name="startOrder" value="2"/>
        <property name="startBeforeBinding" value="true"/>
        <property name="runThreadCount" value="2"/>
        <property name="stopWaitTime" value="1000"/>
        <property name="allowStartFailure" value="true"/>
    </setProperties>

    <setProperties applicationServer="default" merge="true">
        <property name="serviceComponents" operation="append-value" value="MyService" />
    </setProperties>  </target>
</project>