Using the Asynchronous Features Together

6 Using the Asynchronous Features Together 6-1 6 Using the Asynchronous Features Together The following sections describe how to use the asynchronous features together: ■ Section 6.1, Using the Asynchronous Features Together ■ Section 6.2, Example of a JWS File That Implements a Reliable Conversational Web Service ■ Section 6.3, Example of Client Web Service That Asynchronously Invokes a Reliable Conversational Web Service

6.1 Using the Asynchronous Features Together

The preceding sections describe how to use the WebLogic Web service asynchronous features Web service reliable messaging, conversations, asynchronous request-response, and buffering on their own. Typically, however, Web services use the features together; see Section 6.2, Example of a JWS File That Implements a Reliable Conversational Web Service and Section 6.3, Example of Client Web Service That Asynchronously Invokes a Reliable Conversational Web Service for examples. When used together, some restrictions described in the individual feature sections do not apply, and sometimes additional restrictions apply. The following table summarizes considerations for various feature combinations. Table 6–1 Considerations When Using Asynchronous Features Together Feature Combination Consideration Asynchronous request-response with Web service reliable messaging or buffering ■ The asynchronous response from the reliable Web service is also reliable. This means that you must also configure a JMS server, module, and queue on the source WebLogic Server instance, in a similar way you configured the destination WebLogic Server instance, to handle the response. When you create the JMS queue on the source WebLogic Server instance, you are required to specify a JNDI name of weblogic.wsee.DefaultQueue ; you can name the queue anything you want. You must also ensure that you specify that this JMS queue is local, typically by setting the local JNDI name. ■ The reliable or buffered operation cannot be one-way; in other words, you cannot annotate the implementing method with the Oneway annotation. Asynchronous request-response with Web service reliable messaging If you set a property in one of the asynchronous contexts AsyncPreCallContext or AsyncPostCallContext, then the property must implement java.io.Serializable. 6-2 Programming Advanced Features of JAX-RPC Web Services for Oracle WebLogic Server

6.2 Example of a JWS File That Implements a Reliable Conversational Web Service