org.glassfish.openesb.pojose.api.res
Interface POJOContext


Deprecated. since 02/05/2009. Use Context.

public interface POJOContext

POJO Context provides easy methods to POJO Service to invoke another service. Instance is injected by POJO Service Engine into member variable annotated with POJOResource

Author:
Girish Patil, Sreeni Genipudi
See Also:
Context, Resource

Nested Class Summary
static class POJOContext.MessageObjectType
          Deprecated.  
 
Method Summary
 MessageExchangeFactory createExchangeFactory()
          Deprecated. Returns MessageExchangeFactory
 MessageExchangeFactory createExchangeFactory(javax.xml.namespace.QName interfaceName)
          Deprecated. Returns MessageExchangeFactory for a given interface.
 MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
          Deprecated. Returns MessageExchangeFactory for given ServiceEndpoint
 MessageExchangeFactory createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
          Deprecated. Returns MessageExchangeFactory for given service name.
 ServiceEndpoint getEndpoint(javax.xml.namespace.QName serviceName, java.lang.String endpoint)
          Deprecated. Get the service endpoint for the named activated endpoint, if any.
 org.w3c.dom.Document getEndpointDescriptor(ServiceEndpoint endpoint)
          Deprecated. Retrieve the service description metadata for the specified endpoint.
 ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
          Deprecated. Queries the NMR for active endpoints that implement the given interface.
 ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
          Deprecated. Queries the NMR for active endpoints belonging to the given service.
 ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
          Deprecated. Queries the NMR for external endpoints that implement the given interface name.
 ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
          Deprecated. Queries the NMR for external endpoints that are part of the given service.
 MessageExchange getMessageExchange()
          Deprecated. Returns MessageExchange associated with this POJO's Provisioning Service.
 ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
          Deprecated. Resolve the given endpoint reference into a service endpoint.
 void send(MessageExchange me)
          Deprecated. Sends the status in asynch mode as needed by runtime.
 boolean sendSynch(MessageExchange me)
          Deprecated. Sends the MessageExchange in synch mode.
 void sendSynchInOnly(ServiceEndpoint se, java.lang.Object msg)
          Deprecated. Sends the message to given ServiceEndpoint.
 java.lang.Object sendSynchInOut(ServiceEndpoint se, java.lang.Object inMsg, POJOContext.MessageObjectType outputType)
          Deprecated. Sends the message to given ServiceEndpoint.
 

Method Detail

getEndpoint

ServiceEndpoint getEndpoint(javax.xml.namespace.QName serviceName,
                            java.lang.String endpoint)
Deprecated. 
Get the service endpoint for the named activated endpoint, if any. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

getEndpointDescriptor

org.w3c.dom.Document getEndpointDescriptor(ServiceEndpoint endpoint)
                                           throws JBIException
Deprecated. 
Retrieve the service description metadata for the specified endpoint. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
Document
Throws:
JBIException

getEndpoints

ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
Deprecated. 
Queries the NMR for active endpoints that implement the given interface. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

getEndpointsForService

ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
Deprecated. 
Queries the NMR for active endpoints belonging to the given service. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

getExternalEndpoints

ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
Deprecated. 
Queries the NMR for external endpoints that implement the given interface name. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

getExternalEndpointsForService

ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
Deprecated. 
Queries the NMR for external endpoints that are part of the given service. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

resolveEndpointReference

ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Deprecated. 
Resolve the given endpoint reference into a service endpoint. Delegates call to jbi.javax.jbi.component.ComponentContext. Refer https://open-esb.dev.java.net/nonav/public/javadoc/jbi/javax/jbi/component/ComponentContext.html

Returns:
ServiceEndpoint

createExchangeFactory

MessageExchangeFactory createExchangeFactory()
Deprecated. 
Returns MessageExchangeFactory

Returns:
MessageExchangeFactory

createExchangeFactory

MessageExchangeFactory createExchangeFactory(javax.xml.namespace.QName interfaceName)
Deprecated. 
Returns MessageExchangeFactory for a given interface.

Returns:
MessageExchangeFactory

createExchangeFactory

MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
Deprecated. 
Returns MessageExchangeFactory for given ServiceEndpoint

Returns:
MessageExchangeFactory

createExchangeFactoryForService

MessageExchangeFactory createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
Deprecated. 
Returns MessageExchangeFactory for given service name.

Returns:
MessageExchangeFactory

getMessageExchange

MessageExchange getMessageExchange()
Deprecated. 
Returns MessageExchange associated with this POJO's Provisioning Service.

Returns:
MessageExchange

sendSynch

boolean sendSynch(MessageExchange me)
                  throws ErrorMessage
Deprecated. 
Sends the MessageExchange in synch mode. User should take care to use appropriate MessageExchange, i.e either InOnly or InOut. Any MessagingException from delivery channel is wrapped in POJOError.

Parameters:
me - MessageExchange
Returns:
true if the exchange has been processed and returned by the servicing component, false otherwise.
Throws:
ErrorMessage - any MessagingException is also wrapped in this object.

send

void send(MessageExchange me)
          throws ErrorMessage
Deprecated. 
Sends the status in asynch mode as needed by runtime. Sending done, error status in synch mode will result in exception.
JBIMR0024: SendSynch operation not legal in current state.

Parameters:
me - MessageExchange
Throws:
ErrorMessage - any MessagingException is also wrapped in this object.

sendSynchInOnly

void sendSynchInOnly(ServiceEndpoint se,
                     java.lang.Object msg)
                     throws ErrorMessage
Deprecated. 
Sends the message to given ServiceEndpoint. Any MessagingException will be wrapped in POJOError to the caller including when Delivery channel fails to process the message by returning false. Implicit object conversion is done as below. Instance of NormalizedMessage is sent as is. Instance of Source, Node, String is wrapped with WSDL 1.1 JBI wrapper message elements.

Parameters:
se -
msg -
Throws:
org.glassfish.openesb.pojose.api.POJOError
ErrorMessage

sendSynchInOut

java.lang.Object sendSynchInOut(ServiceEndpoint se,
                                java.lang.Object inMsg,
                                POJOContext.MessageObjectType outputType)
                                throws MessageException
Deprecated. 
Sends the message to given ServiceEndpoint. Any MessagingException will be wrapped in POJOError to the caller including when Delivery channel fails to process the message by returning false. Implicit input object conversion is done as below. Instance of NormalizedMessage is sent as is. Instance of Source, Node and String is wrapped with WSDL 1.1 JBI wrapper message elements before sending it as source in a NormalizedMessage. Output or returned object conversion is done based on the given MessageObjectType. Implicit WSDL 1.1 JBI message unwrapping is done when returned message is of type String, Node and Source.

Parameters:
se -
inMsg -
Throws:
org.glassfish.openesb.pojose.api.POJOError
MessageException


Copyright © 2006-2009. All Rights Reserved.