docs.intersystems.com
Home  /  Application Development: Using Adapters and Gateways in Productions  /  Developing Productions with Java Business Services and Operations  /  Developing Java Business Services and Operations


Developing Productions with Java Business Services and Operations
Developing Java Business Services and Operations
[Back]  [Next] 
InterSystems: The power behind what matters   
Search:  


This section describes how to implement the Java code for business services and business operations. To create a business service or business operation, you implement the following classes:
These classes are defined in the intersystems-gateway-3.0.0.jar file provided in the install-dir\dev\java\lib\JDK18 directory. In addition to the BusinessService and BusinessOperation classes, this jar file defines the com.intersystems.gateway.bh.Production, which provides access to the production and the Business Service.
For receiving messages from an external service, you implement a Java application that listens to messages and includes the Java class:
com.intersystems.gateway.bh.BusinessService
with the following methods:
To define settings in the Business Service, define a static string named SETTINGS, that has a string value of a comma separated list of settings name. For example, the following defines settings named MIN and MAX:
  public static final String SETTINGS = "Min,Max";
For sending messages from the production to an external service, you implement a Java application, which includes the Java class:
com.intersystems.gateway.bh.BusinessOperation
with the following methods:
The production is provided as an argument to the BusinessService.OnInit method. It allows you to access settings on the Business Service and to set its status. The class com.intersystems.gateway.bh.Production has the following methods:
For the reference documentation for these classes, see Javadocs Reference for Java Business Hosts Classes.