Apache CXF API

org.apache.cxf.transport.jms
Class JMSDestination

java.lang.Object
  extended by org.apache.cxf.transport.AbstractObservable
      extended by org.apache.cxf.transport.AbstractDestination
          extended by org.apache.cxf.transport.AbstractMultiplexDestination
              extended by org.apache.cxf.transport.jms.JMSDestination
All Implemented Interfaces:
Configurable, Destination, JMSTransport, MultiplexDestination, Observable

public class JMSDestination
extends AbstractMultiplexDestination
implements Configurable, JMSTransport


Nested Class Summary
protected  class JMSDestination.BackChannelConduit
           
protected  class JMSDestination.JMSExecutor
           
protected  class JMSDestination.JMSListenerThread
           
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination
AbstractDestination.AbstractBackChannelConduit
 
Field Summary
protected  AddressType address
           
protected static java.lang.String BASE_BEAN_NAME_SUFFIX
           
protected  ServerBehaviorPolicyType runtimePolicy
           
protected  ServerConfig serverConfig
           
protected  SessionPoolType sessionPool
           
 
Fields inherited from class org.apache.cxf.transport.AbstractDestination
bus, endpointInfo, reference
 
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
 
Constructor Summary
JMSDestination(Bus b, ConduitInitiator ci, EndpointInfo info)
           
 
Method Summary
 void activate()
          Activate messages flow.
 void connected(javax.jms.Destination target, javax.jms.Destination reply, JMSSessionFactory factory)
          Callback from the JMSProviderHub indicating the ClientTransport has been sucessfully connected.
 void deactivate()
          Deactivate messages flow.
 java.lang.String getBeanName()
          Get the configurable object's Bean name
protected  Conduit getInbuiltBackChannel(Message inMessage)
           
 AddressType getJMSAddress()
           
protected  java.util.logging.Logger getLogger()
           
 javax.jms.Queue getReplyToDestination(Message inMessage)
           
 ServerBehaviorPolicyType getRuntimePolicy()
           
 ServerConfig getServerConfig()
           
 SessionPoolType getSessionPool()
           
protected  void incoming(javax.jms.Message message)
           
 void setJMSAddress(AddressType a)
           
 void setReplyCorrelationID(javax.jms.Message request, javax.jms.Message reply)
           
 void setRuntimePolicy(ServerBehaviorPolicyType runtimePolicy)
           
 void setServerConfig(ServerConfig serverConfig)
           
 void setSessionPool(SessionPoolType sessionPool)
           
 void shutdown()
          Shutdown the Destination, i.e.
 
Methods inherited from class org.apache.cxf.transport.AbstractMultiplexDestination
getAddressWithId, getId
 
Methods inherited from class org.apache.cxf.transport.AbstractDestination
getAddress, getBackChannel, getConduitInitiator, markPartialResponse
 
Methods inherited from class org.apache.cxf.transport.AbstractObservable
getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.transport.Destination
getAddress, getBackChannel, getMessageObserver
 
Methods inherited from interface org.apache.cxf.transport.Observable
setMessageObserver
 

Field Detail

BASE_BEAN_NAME_SUFFIX

protected static final java.lang.String BASE_BEAN_NAME_SUFFIX
See Also:
Constant Field Values

serverConfig

protected ServerConfig serverConfig

runtimePolicy

protected ServerBehaviorPolicyType runtimePolicy

address

protected AddressType address

sessionPool

protected SessionPoolType sessionPool
Constructor Detail

JMSDestination

public JMSDestination(Bus b,
                      ConduitInitiator ci,
                      EndpointInfo info)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getLogger

protected java.util.logging.Logger getLogger()
Specified by:
getLogger in class AbstractObservable
Returns:
the logger to use

getInbuiltBackChannel

protected Conduit getInbuiltBackChannel(Message inMessage)
Specified by:
getInbuiltBackChannel in class AbstractDestination
Parameters:
inMessage - the incoming message
Returns:
the inbuilt backchannel

activate

public void activate()
Description copied from class: AbstractObservable
Activate messages flow.

Overrides:
activate in class AbstractObservable

deactivate

public void deactivate()
Description copied from class: AbstractObservable
Deactivate messages flow.

Overrides:
deactivate in class AbstractObservable

shutdown

public void shutdown()
Description copied from class: AbstractDestination
Shutdown the Destination, i.e. stop accepting incoming messages.

Specified by:
shutdown in interface Destination
Overrides:
shutdown in class AbstractDestination

getReplyToDestination

public javax.jms.Queue getReplyToDestination(Message inMessage)
                                      throws javax.jms.JMSException,
                                             javax.naming.NamingException
Throws:
javax.jms.JMSException
javax.naming.NamingException

setReplyCorrelationID

public void setReplyCorrelationID(javax.jms.Message request,
                                  javax.jms.Message reply)
                           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

incoming

protected void incoming(javax.jms.Message message)
                 throws java.io.IOException
Throws:
java.io.IOException

connected

public void connected(javax.jms.Destination target,
                      javax.jms.Destination reply,
                      JMSSessionFactory factory)
Description copied from interface: JMSTransport
Callback from the JMSProviderHub indicating the ClientTransport has been sucessfully connected.

Specified by:
connected in interface JMSTransport

getBeanName

public java.lang.String getBeanName()
Description copied from interface: Configurable
Get the configurable object's Bean name

Specified by:
getBeanName in interface Configurable
Returns:
the bean name

getJMSAddress

public AddressType getJMSAddress()
Specified by:
getJMSAddress in interface JMSTransport

setJMSAddress

public void setJMSAddress(AddressType a)

getRuntimePolicy

public ServerBehaviorPolicyType getRuntimePolicy()

setRuntimePolicy

public void setRuntimePolicy(ServerBehaviorPolicyType runtimePolicy)

getServerConfig

public ServerConfig getServerConfig()

setServerConfig

public void setServerConfig(ServerConfig serverConfig)

getSessionPool

public SessionPoolType getSessionPool()
Specified by:
getSessionPool in interface JMSTransport

setSessionPool

public void setSessionPool(SessionPoolType sessionPool)

Apache CXF API

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.