Introduction to the COTS Application Development Framework (5)

xiaoxiao2021-04-08  382

Application to call the logic of the COTS application

Call within the process

Call within the process requires a non-COTS application to know the path where the COTS application is located. Assuming a non-COST application method is A, then there is a code similar to the following:

......

BLCONText Context = New BlContext ("Path of the COTS Application Profile);

Blresult Br = context.execbl ("Calledblc", "Calledbl", RequestData, SessionData;

......

After obtaining the BlconText object, a reference to the traffic component object can be obtained by the traffic component pool of this object, so that the method in this business component can be called directly.

This calling method actually creates a BlCONText object by the BlconText profile of the COTS application, not the business logic method to the BLContext object in the COTS application.

Process

Process Adjustment requires the BLCONTEXT and all business components of the COTS application to be deployed on an EJB server, and the non-COTS application obtains a reference to an IBLContextRemote interface as a normal EJB customer segment, and then calls COTS through the Execbl method of the interface. The business method in the application is.

转载请注明原文地址:https://www.9cbs.com/read-132695.html

New Post(0)