|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The remote interface for the ApplicationView EJB. It represents a STATELESS session EJB. This interface is used internally by the ApplicationView object. It is recommended that clients use the ApplicationView object instead of this remote interface. The ApplicationView provides for adding event listeners, and easier use of async invocation of services (this interface does not provide these facilities).
Method Summary | |
IEventDefinition |
getEventDefinition(QualifiedName appViewName,
java.lang.String eventType)
Get IEventDefinition for the given event type. |
IDocumentDefinition |
getRequestDocumentDefinition(QualifiedName appViewName,
java.lang.String serviceName)
Get request DocumentDefinition for the given service. |
IDocumentDefinition |
getResponseDocumentDefinition(QualifiedName appViewName,
java.lang.String serviceName)
Get response IDocumentDefinition for the given service. |
IDocument |
invokeService(QualifiedName appViewName,
java.lang.String serviceName,
IDocument request,
boolean autoCreateResponse,
javax.resource.cci.ConnectionSpec spec)
Synchronously invoke the service with the given name, using the request document given. |
IDocument |
invokeService(QualifiedName appViewName,
java.lang.String serviceName,
IDocument request,
javax.resource.cci.ConnectionSpec spec)
Synchronously invoke the service with the given name, using the request document given. |
void |
invokeService(QualifiedName appViewName,
java.lang.String serviceName,
IDocument request,
IDocument response,
javax.resource.cci.ConnectionSpec spec)
Synchronously invoke the service with the given name, using the request and response documents given. |
java.lang.String |
invokeServiceAsync(QualifiedName appViewName,
java.lang.String appViewInstanceID,
java.lang.String serviceName,
IDocument request,
javax.resource.cci.ConnectionSpec spec)
Asynchronously invoke the service with the given name, and post the the response to the JMS response queue for this ApplicationView. |
java.lang.String |
invokeServiceAsync(QualifiedName appViewName,
java.lang.String appViewInstanceID,
java.lang.String serviceName,
IDocument request,
java.lang.String responseQueueJNDIName,
java.util.Map jmsPropertyMap,
javax.resource.cci.ConnectionSpec spec)
Asynchronously invoke the service with the given name, and place the response on the indicated JMS queue when the response is available. |
boolean |
isAsyncEnabled(QualifiedName appViewName)
Determine if this application view has been set up to allow the user to use the invokeServiceAsync() method. |
java.lang.String[] |
listEventTypes(QualifiedName appViewName)
List the events this ApplicationView is capable of delivering, and thus the events which may be listened for using an EventContext returned from a call to getEventContext(). |
java.lang.String[] |
listServiceNames(QualifiedName appViewName)
List service names deployed for this ApplicationView. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public java.lang.String[] listServiceNames(QualifiedName appViewName) throws ApplicationViewException, java.rmi.RemoteException
public java.lang.String[] listEventTypes(QualifiedName appViewName) throws ApplicationViewException, java.rmi.RemoteException
public IDocumentDefinition getRequestDocumentDefinition(QualifiedName appViewName, java.lang.String serviceName) throws ApplicationViewException, java.rmi.RemoteException
public IDocumentDefinition getResponseDocumentDefinition(QualifiedName appViewName, java.lang.String serviceName) throws ApplicationViewException, java.rmi.RemoteException
public IEventDefinition getEventDefinition(QualifiedName appViewName, java.lang.String eventType) throws ApplicationViewException, java.rmi.RemoteException
public IDocument invokeService(QualifiedName appViewName, java.lang.String serviceName, IDocument request, javax.resource.cci.ConnectionSpec spec) throws ApplicationViewException, DocumentException, javax.resource.ResourceException, java.rmi.RemoteException
public IDocument invokeService(QualifiedName appViewName, java.lang.String serviceName, IDocument request, boolean autoCreateResponse, javax.resource.cci.ConnectionSpec spec) throws ApplicationViewException, DocumentException, javax.resource.ResourceException, java.rmi.RemoteException
public void invokeService(QualifiedName appViewName, java.lang.String serviceName, IDocument request, IDocument response, javax.resource.cci.ConnectionSpec spec) throws ApplicationViewException, DocumentException, javax.resource.ResourceException, java.rmi.RemoteException
public boolean isAsyncEnabled(QualifiedName appViewName) throws java.rmi.RemoteException
public java.lang.String invokeServiceAsync(QualifiedName appViewName, java.lang.String appViewInstanceID, java.lang.String serviceName, IDocument request, javax.resource.cci.ConnectionSpec spec) throws ApplicationViewException, java.rmi.RemoteException
getRequestDocumentDefinition(QualifiedName,String)
,
getResponseDocumentDefinition(QualifiedName,String)
,
AsyncServiceResponse
public java.lang.String invokeServiceAsync(QualifiedName appViewName, java.lang.String appViewInstanceID, java.lang.String serviceName, IDocument request, java.lang.String responseQueueJNDIName, java.util.Map jmsPropertyMap, javax.resource.cci.ConnectionSpec spec) throws ApplicationViewException, java.rmi.RemoteException
Optionally, the caller can provide a map of JMS property name/value pairs. The name/value pairs must use a String for both name and value. This method will set the desired JMS properties into the async service response message that is posted to the response queue. If this feature is not required, pass jmsPropertyMap null.
The appViewInstanceID field identifies the application view instance object which made the request, and is placed into a JMS header field in the response message to allow the app view instance object to filter out just its own responses.
If errors occur during the processing of an asyncronous service request, the error message is stored into the AsyncServiceResponse object. Users should check the hasError() method of the response to determine if an error has occurred before attempting to process the response document.
The request document should conform to the document definition given by getRequestDocumentDefinition. The response document will conform to the document definition given by getResponseDocumentDefinition.
getRequestDocumentDefinition(QualifiedName,String)
,
getResponseDocumentDefinition(QualifiedName,String)
,
AsyncServiceResponse
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |