org.apache.servicemix.client
Class RemoteServiceMixClient

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by org.apache.servicemix.components.util.ComponentSupport
              extended by org.apache.servicemix.client.DefaultServiceMixClient
                  extended by org.apache.servicemix.client.RemoteServiceMixClient
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.api.ServiceMixClient, MBeanInfoProvider

public class RemoteServiceMixClient
extends DefaultServiceMixClient

Provides remote access to ServiceMix JBI Containers running on the JMS NMR Flow The RemoteServiceMixClient creates an enbedded JBIContainer and set the flow to use JMSFlow @see org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow

Version:
$Revision: 2153 $

Field Summary
 
Fields inherited from class org.apache.servicemix.components.util.PojoSupport
logger
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
RemoteServiceMixClient()
          Create a RemoteServiceMixClient - setting the default transport for the JMSFlow to be peer://
RemoteServiceMixClient(String uri)
          Create a RemoteServiceMixClient
RemoteServiceMixClient(String uri, ActivationSpec activationSpec)
          Create a RemoteServiceMixClient
 
Method Summary
 void close()
           
 String getContainerName()
           
 void init()
          init initializes the embedded JBIContainer
 void setContainerName(String name)
           
 void shutDown()
          Shut down the item.
 void start()
          Start the item.
 void start(long timeout)
           
 void stop()
          Stop the item.
 
Methods inherited from class org.apache.servicemix.client.DefaultServiceMixClient
configureEndpoint, configureEndpoint, createDestination, createInOnlyExchange, createInOnlyExchange, createInOnlyExchange, createInOptionalOutExchange, createInOptionalOutExchange, createInOptionalOutExchange, createInOutExchange, createInOutExchange, createInOutExchange, createResolverForExternalInterface, createResolverForExternalInterface, createResolverForExternalService, createResolverForService, createResolverInterface, createRobustInOnlyExchange, createRobustInOnlyExchange, createRobustInOnlyExchange, done, fail, fail, getContext, getDeliveryChannel, getExchangeFactory, getFilter, getMarshaler, populateExchangeProperties, populateMessage, populateMessageProperties, receive, receive, request, request, request, resolveEndpointReference, send, send, send, send, send, send, sendSync, sendSync, sendSync, sendSync, sendSync, setFilter, setMarshaler
 
Methods inherited from class org.apache.servicemix.components.util.ComponentSupport
createComponentLifeCycle, createInOnlyExchange, createInOnlyExchange, createInOnlyExchange, createInOptionalOutExchange, createInOutExchange, createInOutExchange, createRobustInOnlyExchange, createServiceUnitManager, creatInOutExchange, forwardToExchange, forwardToExchange, getInMessage, getLifeCycle, getMessageTransformer, getServiceDescription, getServiceUnitManager, initializeServiceUnitManager, invoke, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, propagateCorrelationId, resolveEndpointReference, setMessageTransformer
 
Methods inherited from class org.apache.servicemix.components.util.PojoSupport
answer, getBody, getDescription, getEndpoint, getExtensionMBeanName, getService, init, isInAndOut, setBody, setEndpoint, setExtensionMBeanName, setService
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getName, getObjectToManage, getOperationInfos, getSubType, getType, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServiceMixClient

public RemoteServiceMixClient()
Create a RemoteServiceMixClient - setting the default transport for the JMSFlow to be peer://


RemoteServiceMixClient

public RemoteServiceMixClient(String uri)
Create a RemoteServiceMixClient

Parameters:
uri -

RemoteServiceMixClient

public RemoteServiceMixClient(String uri,
                              ActivationSpec activationSpec)
Create a RemoteServiceMixClient

Parameters:
uri -
activationSpec -
Method Detail

init

public void init()
          throws javax.jbi.JBIException
init initializes the embedded JBIContainer

Overrides:
init in class PojoSupport
Throws:
javax.jbi.JBIException

start

public void start()
           throws javax.jbi.JBIException
Start the item.

Specified by:
start in interface javax.jbi.component.ComponentLifeCycle
Specified by:
start in interface javax.jbi.management.LifeCycleMBean
Overrides:
start in class BaseLifeCycle
Throws:
javax.jbi.JBIException - if the item fails to start.

start

public void start(long timeout)
           throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

stop

public void stop()
          throws javax.jbi.JBIException
Stop the item. This suspends current messaging activities.

Specified by:
stop in interface javax.jbi.component.ComponentLifeCycle
Specified by:
stop in interface javax.jbi.management.LifeCycleMBean
Overrides:
stop in class BaseLifeCycle
Throws:
javax.jbi.JBIException - if the item fails to stop.

shutDown

public void shutDown()
              throws javax.jbi.JBIException
Shut down the item. The releases resources, preparatory to uninstallation.

Specified by:
shutDown in interface javax.jbi.component.ComponentLifeCycle
Specified by:
shutDown in interface javax.jbi.management.LifeCycleMBean
Overrides:
shutDown in class PojoSupport
Throws:
javax.jbi.JBIException - if the item fails to shut down.

getContainerName

public String getContainerName()

setContainerName

public void setContainerName(String name)

close

public void close()
           throws javax.jbi.JBIException
Specified by:
close in interface org.apache.servicemix.jbi.api.ServiceMixClient
Overrides:
close in class DefaultServiceMixClient
Throws:
javax.jbi.JBIException


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.