You are here: Reference > Rule types > Service Javas > More about Service Java rules

More about Service Java rules

  1. About 
  2. New 
  3. Service 
  4. Parameters 
  5. Exceptions 
  6. History 
  7. More... 

Benefits

Java service rules provide a plain Java (POJO) interface to the PRService EJBs. External Java client applications can communicate with the Pega 7 Platform either directly through the PRService beans or through a delegate proxy Java archive, generated by the service package.

Implementation

The service package for a group of Java service rules generates one or more proxy Java archives. The external client application communicates with the Pega 7 Platform through the proxy Java archive, which forwards the messages from the client to the Pega 7 Platform and returns to the client the response.

Dynamic System Settings

Two Dynamic System Settings data instances identify the directories that Java services use. Review these settings and update them as appropriate:

Performance statistics

Through changes the prlogging.xml file, you can obtain performance statistics on the execution of services. See Performance tool — Statistics for services.

Through changes to the prconfig.xml file, you can be alerted to unusually long service operations. See How to detect lengthy service operations.

As an alternative to updating the prconfig.xml file, you can use Dynamic System Settings to configure your application. See Prconfig settings and classifications.

Return types

When using Service Java rules, do not return BigDecimal values unless the calling system also supports this class. Return a String value, or use a transform (identified in a Registry Java Property Transform data instance).

Related Topics Link IconRelated information

About Service Java rules