org.apache.servicemix.jms
Class JmsComponent

java.lang.Object
  extended by org.apache.servicemix.common.AsyncBaseLifeCycle
      extended by org.apache.servicemix.common.DefaultComponent
          extended by org.apache.servicemix.jms.JmsComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, ServiceMixComponent

public class JmsComponent
extends DefaultComponent

JMS JBI binding component


Field Summary
protected  JmsConfiguration configuration
           
protected  JmsEndpointType[] endpoints
           
 
Fields inherited from class org.apache.servicemix.common.DefaultComponent
lifeCycle, logger, registry, serviceUnit, serviceUnitManager
 
Fields inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
channel, component, consumerExecutor, container, context, correlationId, currentState, executorFactory, INITIALIZED, knownExchanges, mbeanName, poller, polling, providerExecutor, running, transactionManager, workManagerCreated
 
Constructor Summary
JmsComponent()
           
 
Method Summary
 BaseServiceUnitManager createServiceUnitManager()
           
protected  void doInit()
           
 java.lang.Object getAuthenticationService()
           
 JmsConfiguration getConfiguration()
           
protected  java.util.List getConfiguredEndpoints()
           
protected  java.lang.Class[] getEndpointClasses()
           
 JmsEndpointType[] getEndpoints()
           
protected  java.lang.Object getExtensionMBean()
           
 java.lang.Object getKeystoreManager()
           
protected  Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep)
           
 void setAuthenticationService(java.lang.Object authenticationService)
           
 void setConfiguration(JmsConfiguration configuration)
          Specifies the configuration bean used to set up the JMS connections for the endpoints.
 void setEndpoints(JmsEndpointType[] endpoints)
          Specifies the list of endpoints hosted by the component.
 void setKeystoreManager(java.lang.Object keystoreManager)
           
 
Methods inherited from class org.apache.servicemix.common.DefaultComponent
addEndpoint, asList, createRegistry, doShutDown, doStart, doStop, getComponentContext, getComponentName, getEPRElementName, getEPRProtocols, getEPRServiceName, getLifeCycle, getLogger, getRegistry, getServiceDescription, getServiceUnit, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, isKnownEndpoint, removeEndpoint, resolveEndpointReference, validateEndpoint
 
Methods inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
createExecutorFactory, createExtensionMBeanName, exceptionShouldRollbackTx, findExecutorFactory, getContainer, getContext, getCurrentState, getExecutor, getExecutorFactory, getExtensionMBeanName, getKnownExchanges, getSmx3Container, handleExchange, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, onMessageExchange, pollDeliveryChannel, prepareExchange, prepareShutdown, prepareShutdown, processExchange, processExchangeInTx, processExchangeWithoutTx, setComponent, setCurrentState, setExecutor, setExecutorFactory, shutDown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.common.ServiceMixComponent
getContainer, getExecutor, getSmx3Container, handleExchange, prepareExchange, prepareShutdown
 

Field Detail

configuration

protected JmsConfiguration configuration

endpoints

protected JmsEndpointType[] endpoints
Constructor Detail

JmsComponent

public JmsComponent()
Method Detail

getConfiguredEndpoints

protected java.util.List getConfiguredEndpoints()
Overrides:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

protected java.lang.Class[] getEndpointClasses()
Overrides:
getEndpointClasses in class DefaultComponent

getConfiguration

public JmsConfiguration getConfiguration()
Returns:
Returns the configuration.

setConfiguration

public void setConfiguration(JmsConfiguration configuration)
Specifies the configuration bean used to set up the JMS connections for the endpoints.

Parameters:
configuration - the configuration object

getEndpoints

public JmsEndpointType[] getEndpoints()

setEndpoints

public void setEndpoints(JmsEndpointType[] endpoints)
Specifies the list of endpoints hosted by the component.

Parameters:
endpoints - the list of endpoints

getKeystoreManager

public java.lang.Object getKeystoreManager()
Returns:
the keystoreManager

setKeystoreManager

public void setKeystoreManager(java.lang.Object keystoreManager)
Parameters:
keystoreManager - the keystoreManager to set

getAuthenticationService

public java.lang.Object getAuthenticationService()
Returns:
the authenticationService

setAuthenticationService

public void setAuthenticationService(java.lang.Object authenticationService)
Parameters:
authenticationService - the authenticationService to set

getExtensionMBean

protected java.lang.Object getExtensionMBean()
                                      throws java.lang.Exception
Overrides:
getExtensionMBean in class AsyncBaseLifeCycle
Throws:
java.lang.Exception

createServiceUnitManager

public BaseServiceUnitManager createServiceUnitManager()
Overrides:
createServiceUnitManager in class DefaultComponent

doInit

protected void doInit()
               throws java.lang.Exception
Overrides:
doInit in class DefaultComponent
Throws:
java.lang.Exception

getResolvedEPR

protected Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep)
                           throws java.lang.Exception
Overrides:
getResolvedEPR in class AsyncBaseLifeCycle
Throws:
java.lang.Exception


Copyright © 2005-2014 FuseSource. All Rights Reserved.