org.glassfish.openesb.pojose.api.annotation
Annotation Type Operation


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Operation

This annotation designates a method to be called with all incoming request messages. Method signature should have one argument of type String, Node, byte[], Source, NormalizedMessage or MessageExchange.
Return type can be one of void, String, Node, Source, byte[], NormalizedMessage or MessageExchange.
If another method annotated with @OnDone is present, its return type determines the message exchange pattern and output message of this service. If method annotated with @OnDone returns void, then message exchange pattern for this service is InOnly or else pattern will be InOut. Even for InOnly pattern, service engine will send done/error status only after completion of method annotated with @Operation and @OnDone if one is present.
This behaivior is different from BPEL engine in order to account for non availibility of inbuilt message persistence.

Author:
gmpatil, sgenipudi

Optional Element Summary
 java.lang.String name
           
 java.lang.String outMessageType
          Deprecated. 11/06/08, use outMessageTypeQN.
 java.lang.String outMessageTypeNS
          Deprecated. 11/06/08, use outMessageTypeQN.
 java.lang.String outMessageTypeQN
          Output message type for InOut message exchange pattern service operation.
 

name

public abstract java.lang.String name
Default:
""

outMessageTypeQN

public abstract java.lang.String outMessageTypeQN
Output message type for InOut message exchange pattern service operation. User must specify when implicit WSDL 1.1 message wrapping is used for the return type of String, Source, Node and byte[]. Follows QName.toString syntax. Ex: "{someNameSpace}localName"

Default:
""

outMessageTypeNS

public abstract java.lang.String outMessageTypeNS
Deprecated. 11/06/08, use outMessageTypeQN.

Default:
""

outMessageType

public abstract java.lang.String outMessageType
Deprecated. 11/06/08, use outMessageTypeQN.

Returns:
String messageType local name.
Default:
""


Copyright © 2006-2009. All Rights Reserved.