| java.lang.Object TestBinding.PBTestBinding
PBTestBinding | public class PBTestBinding implements Component,ComponentLifeCycle(Code) | | This is a servlet that acts as a Binding Component and tests the dynamic
registration support provided by JBI. It registers itself as a binding and
then performs a fixed set of message exchanges with another servlet that
acts as a Service Engine. That servlet is EngineServlet.
author: Sun Microsystems, Inc. |
PBTestBinding | public PBTestBinding()(Code) | | |
getExtensionMBeanName | public javax.management.ObjectName getExtensionMBeanName()(Code) | | Get the Extension MBean name.
The JMX object name of the Extension MBean for this BC,which is always null in this test. |
getLifeCycle | public ComponentLifeCycle getLifeCycle()(Code) | | Get the ComponentLifeCycle instance.
The ComponentLifeCycle instance. |
getServiceUnitManager | public ServiceUnitManager getServiceUnitManager()(Code) | | Get the ServiceUnitManager instance.
The ServiceUnitManager instance, which is always null forthis test. |
init | public void init(ComponentContext context) throws javax.jbi.JBIException(Code) | | Initializes the JBI LifeCycle. Because this servlet specified the
"self-started" option when it registered, this method does nothing.
Parameters: context - - the component context provided by the JBI framework. throws: javax.jbi.JBIException - if any error occurs. |
isExchangeWithConsumerOkay | public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)(Code) | | This method is called by JBI to check if this component, in the role of
provider of the service indicated by the given exchange, can actually
perform the operation desired.
Parameters: endpoint - Parameters: exchange - true if its OK. |
isExchangeWithProviderOkay | public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)(Code) | | This method is called by JBI to check if this component, in the role of
consumer of the service indicated by the given exchange, can actually
interact with the the provider completely.
Parameters: endpoint - Parameters: exchange - true if OK. |
resolveEndpointReference | public ServiceEndpoint resolveEndpointReference(DocumentFragment epr)(Code) | | Resolve the endpoint reference using the given capabilities of the
consumer. This is called by JBI when its trying to resove the given EPR
on behalf of the component.
Parameters: epr - endpoint reference. Service enpoint. |
shutDown | public void shutDown() throws javax.jbi.JBIException(Code) | | Shuts down the JBI LifeCycle. Because this servlet specified the
"self-started" option when it registered, this method does nothing.
throws: javax.jbi.JBIException - if any error occurs. |
|
|