Class JmsTemporaryQueueEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.AsyncEndpoint, org.apache.camel.CamelContextAware, DestinationEndpoint, JmsBrowsableEndpoint, org.apache.camel.ComponentAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.MultipleConsumersSupport, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.BrowsableEndpoint, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class JmsTemporaryQueueEndpoint extends JmsQueueEndpoint implements DestinationEndpoint
A JMS Endpoint for working with a TemporaryQueue

Important: Need to be really careful to always use the same Connection otherwise the destination goes stale

  • Constructor Details

  • Method Details

    • isSingleton

      public boolean isSingleton()
      This endpoint is a singleton so that the temporary destination instances are shared across all producers and consumers of the same endpoint URI
      Specified by:
      isSingleton in interface org.apache.camel.IsSingleton
      Overrides:
      isSingleton in class org.apache.camel.support.DefaultEndpoint
      Returns:
      true
    • getJmsDestination

      public jakarta.jms.Destination getJmsDestination(jakarta.jms.Session session) throws jakarta.jms.JMSException
      Specified by:
      getJmsDestination in interface DestinationEndpoint
      Throws:
      jakarta.jms.JMSException
    • createJmsDestination

      protected jakarta.jms.Destination createJmsDestination(jakarta.jms.Session session) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException