uCosminexus Service Platform, Reception and Adapter Definition Guide
This appendix describes the contents of the files defined when developing General custom adapters in the custom adapter development framework.
The custom adapter development framework action definition file is a properties file in XML format that can be read by the loadFromXML method of the java.util.Properties class. It must have the file name framework_properties.xml.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="classname">protocolconverter.MyProtocolConverter</entry> </properties> |
The custom adapter property file is a properties file in XML format that can be read by the loadFromXML method of the java.util.Properties class. It must have the file name customadapter_properties.xml.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="init">1</entry> <entry key="min">0</entry> <entry key="max">10</entry> </properties> |
A HITACHI Application Integrated Property File for a custom adapter is a file in XML format. It is a variant of a HITACHI Application Integrated Property File, used in the following situations:
A HITACHI Application Integrated Property File for custom adapters must have the file name cscadapter_property.xml.
For details on HITACHI Application Integrated Property files, see the following sections:
Table B-4 Template of HITACHI Application Integrated Property File for custom adapter
| Tag | Description | Changeable |
|---|---|---|
<?xml version="1.0" encoding="MS932"?> |
XML declaration | Yes |
<!DOCTYPE hitachi-application-all-property PUBLIC '-//Hitachi, Ltd.//DTD Application All Property 7.1//EN' 'http://localhost/hitachi-application-all-property_7_1.dtd'> |
DOCTYPE declaration | -- |
<hitachi-application-all-property> |
Root tag | -- |
<hitachi-application-property> |
Opening tag for the definition of application-related information | -- |
<description></description> |
Description of the application | Yes |
<icon> |
Opening tag for the definition of a J2EE application icon displayed in the Deploy tool | -- |
<small-icon></small-icon> |
File name of small icon (16 x 16) | Yes |
<large-icon></large-icon> |
File name of large icon (32 x 32) | Yes |
</icon> |
Closing tag for the definition of a J2EE application icon displayed in the Deploy tool | -- |
<lookup-name>CTMADP</lookup-name> |
Name used when looking up EJBs from the client | Yes#1 |
<security-prop> |
Opening tag for the definition of the Enterprise Bean security management method | -- |
<security-method>no_security_for_methods_without_roles
</security-method>
|
Security management method | -- |
<default-security-role></default-security-role> |
Default security role when map_methods_without_roles is specified in security-method | -- |
</security-prop> |
Closing tag for the definition of the Enterprise Bean security management method | -- |
<start-order>120</start-order> |
The order in which J2EE applications are started and stopped | Auto#2 |
<scheduling-unit>Application</scheduling-unit> |
Specifies the queue scheduling unit | -- |
<scheduling> |
Opening tag for the definition relating to CTM integration | -- |
<queue-name>CTMADP</queue-name> |
Name of the queue used for scheduling | Yes#1 |
<parallel-count>1</parallel-count> |
The number of threads prepared by CTM to invoke an application | -- |
<queue-length></queue-length> |
Length of the queue used for scheduling | -- |
</scheduling> |
Closing tag for the definition relating to CTM integration | -- |
<managed-by-ctm>false</managed-by-ctm> |
Specifies whether to perform CTM integration | -- |
<method-observation-recovery-mode>
</method-observation-recovery-mode>
|
Specifies the recovery mode of the J2EE application time monitoring functionality | -- |
</hitachi-application-property> |
Closing tag for the definition of application-related information | -- |
<ejb-jar> |
Opening tag for the definition of EJB-related information | -- |
<hitachi-ejb-jar-property> |
Opening tag for the definition of information relating to EJB-JAR attributes | -- |
<description xml:lang="en"></description> |
Description of EJB-JAR | Yes |
<display-name xml:lang="en">CSCMsgServiceAdapter
</display-name>
|
Display name of EJB-JAR | -- |
<icon xml:lang="en"> |
Opening tag for the definition of an EJB-JAR icon displayed in the GUI tool | -- |
<small-icon></small-icon> |
File name of small icon (16 x 16) | Yes |
<large-icon></large-icon> |
File name of large icon (32 x 32) | Yes |
</icon> |
Closing tag for the definition of an EJB-JAR icon displayed in the GUI tool | -- |
<ejb-client-jar></ejb-client-jar> |
Name of client JAR file | -- |
</hitachi-ejb-jar-property> |
Closing tag for the definition of information relating to EJB-JAR attributes | -- |
<hitachi-session-bean-property> |
Opening tag for the definition of Session Bean attributes | -- |
<description xml:lang="en"></description> |
Description of Session Bean | Yes |
<display-name xml:lang="en">CSCMsgServiceAdapterEJB
</display-name>
|
Display name of Session Bean | -- |
<icon xml:lang="en"> |
Opening tag for the definition of a Session Bean icon displayed in the GUI tool | -- |
<small-icon></small-icon> |
File name of small icon (16 x 16) | Yes |
<large-icon></large-icon> |
File name of large icon (32 x 32) | Yes |
</icon> |
Closing tag for the definition of a Session Bean icon displayed in the GUI tool | -- |
<session-type>Stateless</session-type> |
Session Bean type | -- |
<transaction-type>Container</transaction-type> |
Transaction management type | -- |
<env-entry> |
Opening tag for the environment entry definition | Auto#3 |
<description xml:lang="en"></description> |
Description of the environment entry |
|
<env-entry-name>CscServerName</env-entry-name> |
Environment entry name |
|
<env-entry-type>java.lang.String</env-entry-type> |
Data type of the environment entry |
|
<env-entry-value>HCSC</env-entry-value> |
Value of the environment entry |
|
</env-entry> |
Closing tag for the environment entry definition |
|
<env-entry> |
Opening tag for the environment entry definition |
|
<description xml:lang="en"></description> |
Description of the environment entry |
|
<env-entry-name>CscClusterName</env-entry-name> |
Environment entry name |
|
<env-entry-type>java.lang.String</env-entry-type> |
Data type of the environment entry |
|
<env-entry-value>Cluster</env-entry-value> |
Value of the environment entry |
|
</env-entry> |
Closing tag for the environment entry definition |
|
<env-entry> |
Opening tag for the environment entry definition |
|
<description xml:lang="en"></description> |
Description of the environment entry |
|
<env-entry-name>AdapterName</env-entry-name> |
Environment entry name |
|
<env-entry-type>java.lang.String</env-entry-type> |
Data type of the environment entry |
|
<env-entry-value>CTMADP</env-entry-value> |
Value of the environment entry |
|
</env-entry> |
Closing tag for the environment entry definition |
|
<container-transaction> |
Opening tag for the definition of the container transaction | -- |
<description xml:lang="en"></description> |
Description of the container transaction | -- |
<method> |
Opening tag for the method definition | -- |
<description xml:lang="en"></description> |
Description of the method | -- |
<method-intf></method-intf> |
Interface type to which the method belongs | -- |
<method-name>*</method-name> |
Method name | -- |
</method> |
Closing tag for the method definition | -- |
<trans-attribute>Required</trans-attribute> |
Transaction attribute allocated to the method | -- |
</container-transaction> |
Closing tag for the definition of the container transaction | -- |
<session-runtime> |
Opening tag for the runtime definition | -- |
<lookup-name>CSCMsgServiceAdapterEJB
</lookup-name>
|
Name used when looking up EJB from the client | -- |
<optional-name>CTMADP</optional-name> |
Optional name for the remote interface | Auto#3 |
<maximum-sessions>0</maximum-sessions> |
Maximum number of sessions | Yes |
<stateless> |
Opening tag for the stateless definition | -- |
<pooled-instance> |
Opening tag for the definition relating to pooled instances | -- |
<minimum>1</minimum> |
Minimum number of pooled instances | Yes |
<maximum>0</maximum> |
Maximum number of pooled instances | Yes |
</pooled-instance> |
Closing tag for the definition relating to pooled instances | -- |
<instance-timeout>0</instance-timeout> |
Timeout period for instance acquisition | Yes |
</stateless> |
Closing tag for the stateless definition | -- |
<enable-scheduling>false</enable-scheduling> |
Specifies whether to enable scheduling for the bean (whether to use it as a scheduler Gate) | -- |
<pass-by-reference>true</pass-by-reference> |
Specifies whether to use pass by reference when invoking the bean | Auto#3 |
<scheduling> |
Opening tag for the definition of information relating to CTM integration | -- |
<queue-name>CSCMsgServiceAdapterEJB
</queue-name>
|
Name of the queue used for scheduling | -- |
<parallel-count>1</parallel-count> |
The number of threads prepared by CTM to invoke an application | -- |
<queue-length></queue-length> |
Length of the queue used for scheduling | -- |
</scheduling> |
Closing tag for the definition of information relating to CTM integration | -- |
<front-ejb>false</front-ejb> |
Specifies whether the EJB is a front EJB (an EJB the client invokes directly) | -- |
</session-runtime> |
Closing tag for the runtime definition | -- |
<start-order>10</start-order> |
Specifies the order in which J2EE applications are started and stopped | -- |
</hitachi-session-bean-property> |
Closing tag for the definition of Session Bean attributes | -- |
</ejb-jar> |
Closing tag for the definition of EJB-related information | -- |
</hitachi-application-all-property> |
Root tag | -- |
The function of the custom adapter definition file and the properties you can set in the file are described below.
Service-Platform-installation-directory\CSC\samples\customadapter\csccustomadapter.properties
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.