Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-03


oracle.webservices.annotations.async
Annotation Type CallbackRef


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface CallbackRef

This is a dependency injection (DI) style marker annotation that applies to a member field or setter method of the service endpoint implementation. When the system finds this annotation on a service implementation it will inject the appropriate outgoing addressing headers into the annotated field. The values of the outgoing addressing headers are based off of the incoming addressing headers as described in the ws-addressing specification (http://www.w3.org/Submission/ws-addressing/) in section 3.2 Formulating a Reply Message.

If the service endpoint implementation is a SEI implementation or JSR-181 annotated endpoint implementation bean class, the callback to be injected could be of the type specified in the CallbackAssociate annotation. For example:

 @CallbackRef
 MyServiceCallback mycallback;
 

Other types that can be injected with the CallbackRef annotation are Dispatch - useful if the service wants to construct the response message by using saaj directly.

 @CallbackRef
 Dispatch dispatch;
 

oracle.webservices.async.AddressingInfo - useful if the response will no be sent back to the client in less than a few seconds. See API secion below for more information about the AddressingInfo class.

 @CallbackRef
 AddressingInfo addressingInfo;
 

Optional Element Summary
 String name
          The JNDI name of the resource.

 

name

public abstract String name
The JNDI name of the resource. The default name is [class with this annotation]/[field name]
Default:
""

Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-03


Copyright © 2006, 2010, Oracle and/or its affiliates. All rights reserved..