Class SjmsTemplate


  • public class SjmsTemplate
    extends Object
    • Constructor Detail

      • SjmsTemplate

        public SjmsTemplate​(javax.jms.ConnectionFactory connectionFactory,
                            boolean transacted,
                            int acknowledgeMode)
    • Method Detail

      • getConnectionFactory

        public javax.jms.ConnectionFactory getConnectionFactory()
      • setDestinationCreationStrategy

        public void setDestinationCreationStrategy​(DestinationCreationStrategy destinationCreationStrategy)
      • setQoSSettings

        public void setQoSSettings​(int deliveryMode,
                                   int priority,
                                   long timeToLive)
      • setExplicitQosEnabled

        public void setExplicitQosEnabled​(boolean explicitQosEnabled)
      • setPreserveMessageQos

        public void setPreserveMessageQos​(boolean preserveMessageQos)
      • send

        public void send​(javax.jms.MessageProducer producer,
                         javax.jms.Message message)
                  throws Exception
        Throws:
        Exception
      • receive

        public javax.jms.Message receive​(String destinationName,
                                         String messageSelector,
                                         boolean isTopic,
                                         long timeout)
                                  throws Exception
        Throws:
        Exception
      • createConnection

        public javax.jms.Connection createConnection()
                                              throws Exception
        Throws:
        Exception
      • createSession

        public javax.jms.Session createSession​(javax.jms.Connection connection)
                                        throws Exception
        Throws:
        Exception