Class JMSDestination

  • All Implemented Interfaces:
    javax.jms.MessageListener, org.apache.cxf.transport.Destination, org.apache.cxf.transport.DestinationWithEndpoint, org.apache.cxf.transport.MultiplexDestination, org.apache.cxf.transport.Observable

    public class JMSDestination
    extends org.apache.cxf.transport.AbstractMultiplexDestination
    implements javax.jms.MessageListener
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.cxf.transport.AbstractDestination

        org.apache.cxf.transport.AbstractDestination.AbstractBackChannelConduit
    • Field Summary

      • Fields inherited from class org.apache.cxf.transport.AbstractDestination

        endpointInfo, reference
      • Fields inherited from class org.apache.cxf.transport.AbstractObservable

        incomingObserver
    • Constructor Summary

      Constructors 
      Constructor Description
      JMSDestination​(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo info, JMSConfiguration jmsConfig)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()
      Initialize jmsTemplate and jmsListener from jms configuration data in jmsConfig
      void deactivate()  
      protected org.apache.cxf.transport.Conduit getInbuiltBackChannel​(org.apache.cxf.message.Message inMessage)  
      JMSConfiguration getJmsConfig()  
      protected Logger getLogger()  
      void onMessage​(javax.jms.Message message)
      Convert JMS message received by ListenerThread to CXF message and inform incomingObserver that a message was received.
      protected void restartConnection()  
      void setJmsConfig​(JMSConfiguration jmsConfig)  
      void shutdown()  
      • Methods inherited from class org.apache.cxf.transport.AbstractMultiplexDestination

        getAddressWithId, getId
      • Methods inherited from class org.apache.cxf.transport.AbstractDestination

        getAddress, getBackChannel, getEndpointInfo
      • Methods inherited from class org.apache.cxf.transport.AbstractObservable

        getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
      • Methods inherited from interface org.apache.cxf.transport.Destination

        getAddress, getBackChannel, getMessageObserver
      • Methods inherited from interface org.apache.cxf.transport.Observable

        setMessageObserver
    • Constructor Detail

      • JMSDestination

        public JMSDestination​(org.apache.cxf.Bus b,
                              org.apache.cxf.service.model.EndpointInfo info,
                              JMSConfiguration jmsConfig)
    • Method Detail

      • getInbuiltBackChannel

        protected org.apache.cxf.transport.Conduit getInbuiltBackChannel​(org.apache.cxf.message.Message inMessage)
        Specified by:
        getInbuiltBackChannel in class org.apache.cxf.transport.AbstractDestination
        Parameters:
        inMessage - the incoming message
        Returns:
        the inbuilt backchannel
      • activate

        public void activate()
        Initialize jmsTemplate and jmsListener from jms configuration data in jmsConfig
        Overrides:
        activate in class org.apache.cxf.transport.AbstractObservable
      • restartConnection

        protected void restartConnection()
      • deactivate

        public void deactivate()
        Overrides:
        deactivate in class org.apache.cxf.transport.AbstractObservable
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.cxf.transport.Destination
        Overrides:
        shutdown in class org.apache.cxf.transport.AbstractDestination
      • onMessage

        public void onMessage​(javax.jms.Message message)
        Convert JMS message received by ListenerThread to CXF message and inform incomingObserver that a message was received. The observer will call the service and then send the response CXF message by using the BackChannelConduit
        Specified by:
        onMessage in interface javax.jms.MessageListener
      • getLogger

        protected Logger getLogger()
        Specified by:
        getLogger in class org.apache.cxf.transport.AbstractObservable