Back Forward About Service EJB rules

Integration Services category
New Service Parameters Exceptions History More...

Purpose

Using the Java Business Delegate pattern and the Java Session Facade pattern, the EJB® (Enterprise JavaBeans®) service interface in Process Commander makes service rules available to external, Java-based applications as if the service rules were methods of a session bean. SR-7990 B-20008 BUG-2022

When Process Commander is deployed as an enterprise application, two EJBs named PRServiceStatelessSR-7723 and PRServiceStateful implement the Process Commander session facade. They are the public interface for remote and local access to Process Commander EJB and Java services. External Java client applications can communicate with Process Commander either directly through the PRService beans or through a delegate proxy EJB, generated by the service package.

The service package for a group of EJB service rules generates one or more proxy EJBs that you deploy. The EJB client application communicates with Process Commander through the proxy EJB, which forwards the messages from the client to Process Commander and returns to the client the response.

EJB services generally process service requests synchronously. That is, they immediately perform their requested processing and return a configured return value while the calling application waits. However, you can configure EJB services to process service requests asynchronously, which means the service queues the request for asynchronous execution and the calling application calls back later for the results. Additionally, you can configure synchronous EJB services to check for specific error conditions that you expect will be temporary — work object locks, for example — and then queue service requests that fail for those reasons for another attempt at a later time.

Access

Use the Application Explorer or the Integration Overview landing page to see ServiceEJB rules in your application. Use the Rules Explorer to list all Service EJB rules that are available to you. To access the Integration Overview landing page, select > Integration > Overview.

Category

Service EJB rules belong to the Integration-Services category. A Service EJB rule is an instance of the Rule-Service-EJB rule type.

Related topics How to unit test a Service EJB rule
How to call Process Commander through Java-based services
Standard rules Atlas — Standard Service EJB rules

Integration-Services category
Help System home pageHelp Home