| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Context.Callback
Defines callback events that may be received by the container.
| Method Summary | |
|---|---|
 void | 
onAgeTimeout(long age)
Received by conversational web services when the current instance has reached its maximum lifetime.  | 
 void | 
onAsyncFailure(String methodName,
               Object[] args)
Received when an asynchronous (or, message-buffered) method is unable to be succesfully delivered.  | 
 void | 
onCreate()
Received after a new instance has been created and system initialization (of context object and contained controls) has been completed.  | 
 void | 
onException(Exception e,
            String methodName,
            Object[] args)
Received when a web service operation throws an uncaught exception.  | 
 void | 
onFinish(boolean expired)
Received by conversational web services when the current instance is about to be finished.  | 
 void | 
onIdleTimeout(long time)
Received by conversational web services when the current instance has reached its maximum idle timeout.  | 
| Method Detail | 
|---|
void onCreate()
void onAgeTimeout(long age)
age - The age of the conversation that has timed out.void onIdleTimeout(long time)
time - The current time in milliseconds.void onFinish(boolean expired)
@conversation phase="finish".
expired - true if the conversation finished
 because it timed out; otherwise, false.
void onException(Exception e,
                 String methodName,
                 Object[] args)
 public void context_onException(Exception e, String methodName, Object[] arguments)
 {
     System.out.println("MyService: exception in " + methodName + "(" + 
         arguments + "). Exception: " + e);
         context.finishConversation();
 }
 
 
 Not all methods in a web service are necessarily operations. 
 In web services, an operation is a method specifically exposed 
 to clients. In WebLogic Workshop, the source code of an operation 
 is preceded by an @common:operation annotation.
 
e - The exception object thrown from the method.methodName - The name of the method from which the exception 
 was thrown.args - An array containing the parameters of the method 
 that threw the exception.
void onAsyncFailure(String methodName,
                    Object[] args)
methodName - The method that could not be delivered.args - An array containing the parameters of the method.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||