Jain Slee 1.0 Specification Read Notes (2)

xiaoxiao2021-03-14  196

RA

connection

Slee

Applications and underlying event sources, for example

SIP

Stack of protocols,

TCP / IP

Stack of protocols,

HTTP

Agreement stack.

The RA receives the protocol signal or event, generates the object of Java, and then transmits them into the JSLE application server.

JSLEE RA concept consists of RA Type and specific RA

RA TYPE mainly defines the event type generated by RA, and the shared information between SBB and RA, and SBB is used to access the RA interface.

RA implements a RA Type, typically state, and constructs an internal state machine (Activity) to change the status according to different signals.

Activity Context is equivalent to the interface of the Activity, both of which correspond to one by one. Activity Context can be accessed by RA and SBB (meaning Activity can also be accessed by both)

In summary, RA Type defines the type of RA, and the implementation of the RA has a specific protocol stack to generate an event represented by Java objects to SLEE AS, AC to exchange information between RA and SBB.

RA TYPE Descriptor:

EVENT-JAR.XML

Resource-adaptor-type-jar.xml

Deployable-unit.xml

RA descriptor

Resource-adaptor-jar.xml

Deployable-unit.xml

Jslee Service

SBB-jar.xml

Service.xml

Deployable-unit.xml

Ra Type's event definition: Event-jar.xml pieces

javax.sip.Message.Request.invite

javax.sip

1.1

javax.sip.requestenest

Resource-adaptor-type-jar.xml

Disclaimer Activity Type:

com.maretzke.raframe.ratype.rafactivity

An Activity is an abstraction of a related event stream that can be understood as the underlying state machine, the message receiving the underlying protocol stack, issued an event (Event) according to the state change (SBB)

For SIP, an Activity is Servertractions or ClientTransaction

An Activity needs to correspond to an ActivityHandle (implementing a javax.slee.resource.activityhandle interface) to identify this ACTIVITY

In the event processing method of the RA, you get Activity by activityHandle (because RA needs to define a HashMap table to save all Activities)

In the SBB's onxxxevent method, you get Activity through ActivityContextInterface.

(to be continued)

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

New Post(0)