org.apache.servicemix.jms.endpoints
Class JmsJcaConsumerEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ConsumerEndpoint
              extended by org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint
                  extended by org.apache.servicemix.jms.endpoints.JmsJcaConsumerEndpoint
All Implemented Interfaces:
Endpoint, JmsEndpointType

public class JmsJcaConsumerEndpoint
extends AbstractConsumerEndpoint
implements JmsEndpointType

A Spring-based JMS consumer that uses JCA to connect to the JMS provider

Author:
gnodet

Nested Class Summary
protected static class JmsJcaConsumerEndpoint.SimpleBootstrapContext
           
 
Field Summary
 
Fields inherited from class org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint
PROP_JMS_CONTEXT
 
Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
logger
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
JmsJcaConsumerEndpoint()
           
 
Method Summary
 javax.resource.spi.ActivationSpec getActivationSpec()
           
 javax.resource.spi.BootstrapContext getBootstrapContext()
           
 java.lang.String getLocationURI()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 void setActivationSpec(javax.resource.spi.ActivationSpec activationSpec)
          Specifies the activation information needed by the endpoint.
 void setBootstrapContext(javax.resource.spi.BootstrapContext bootstrapContext)
          Specifies the BootStrapContext used to start the resource adapter.
 void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
          Specifies the resource adapter used for the endpoint.
 void start()
           
 void stop()
           
 void validate()
           
 
Methods inherited from class org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint
activate, deactivate, getConnectionFactory, getDestinationChooser, getDestinationResolver, getMarshaler, getReplyDeliveryMode, getReplyDestination, getReplyDestination, getReplyDestinationName, getReplyPriority, getReplyProperties, getReplyTimeToLive, getStore, getStoreFactory, getUseMessageIdInResponse, handleException, isJms102, isPubSubDomain, isReplyExplicitQosEnabled, isStateless, isSynchronous, onMessage, process, processExchange, send, sendError, setConnectionFactory, setCorrelationId, setDestinationChooser, setDestinationResolver, setJms102, setMarshaler, setPubSubDomain, setReplyDeliveryMode, setReplyDestination, setReplyDestinationName, setReplyExplicitQosEnabled, setReplyPriority, setReplyProperties, setReplyTimeToLive, setStateless, setStore, setStoreFactory, setSynchronous, setUseMessageIdInResponse, treatExceptionAsFault
 
Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsJcaConsumerEndpoint

public JmsJcaConsumerEndpoint()
Method Detail

getBootstrapContext

public javax.resource.spi.BootstrapContext getBootstrapContext()
Returns:
the bootstrapContext

setBootstrapContext

public void setBootstrapContext(javax.resource.spi.BootstrapContext bootstrapContext)
Specifies the BootStrapContext used to start the resource adapter. If this property is not set, a default BootstrpContext will be created.

Parameters:
bootstrapContext - the BootstrapContext to use

getActivationSpec

public javax.resource.spi.ActivationSpec getActivationSpec()
Returns:
the activationSpec

setActivationSpec

public void setActivationSpec(javax.resource.spi.ActivationSpec activationSpec)
Specifies the activation information needed by the endpoint.

Parameters:
activationSpec - the ActivationSpec containing the activation information

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Returns:
the resourceAdapter

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
Specifies the resource adapter used for the endpoint.

Parameters:
resourceAdapter - the ResourceAdapter to use

getLocationURI

public java.lang.String getLocationURI()
Overrides:
getLocationURI in class AbstractConsumerEndpoint

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Endpoint
Overrides:
start in class SimpleEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Endpoint
Overrides:
stop in class SimpleEndpoint
Throws:
java.lang.Exception

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Specified by:
validate in interface Endpoint
Overrides:
validate in class ConsumerEndpoint
Throws:
javax.jbi.management.DeploymentException


Copyright © 2005-2014 FuseSource. All Rights Reserved.