5 1 1 Mapping Service Name to Java Classes

LANSA Integrator

5.1.1 Mapping Service Name to Java Classes

The service name is the value used by the SERVICE keyword. This name is used in a keyword lookup on the service.properties file in the system subdirectory. The string "service." is prefixed to the service name and the Java class that will supply the service is located and loaded. This loaded class then receives the future commands, until it is unloaded and a new service is loaded.

Example

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('SERVICE_LOAD SERVICE(FTPService)') TO_GET(#JSMSTS #JSMMSG)

 

The service FTPService is used by the JSM server to locate the Java class com.lansa.jsm.service.FTPService.

Example

 

service.FTPService=com.lansa.jsm.service.FTPService

service.XMLParserService=com.lansa.jsm.service.XMLParserService

service.POP3MailService=com.lansa.jsm.service.POP3MailService