@common:context Annotation

The @common:context annotation specifies that WebLogic Server should create a context for the component, such as a business process or a control. The context ensures that conversations between the component and a client are correlated correctly and that the component's state is maintained. The @common:context annotation precedes the declaration of the context object; the type of the context object depends on the container you are using. For business processes, the context object is of type JpdContext; for controls, ControlContext.

Syntax

@common:context 

Attributes

None.

Remarks

The following rules apply to this annotation's use:

For example, the annotation and instance declaration for the JpdContext object appear as follows:

 /** @common:context */  
    JpdContext context;  

If the @common:context annotation is not present on the instance declaration, the component that defines it does function properly.

Related Topics

jpdContext Interface