private void createJmsTemplate ( ) { Assert . isTrue ( this . connectionFactory != null , "Neither 'jmsTemplate' nor 'connectionFactory' is set correctly." ) ; jmsTemplate = new JmsTemplate ( ) ; jmsTemplate . setConnectionFactory ( this . connectionFactory ) ; if ( this . destination != null ) { jmsTemplate . setDefaultDestination ( this . destination ) ; } else if ( this . destinationName != null ) { jmsTemplate . setDefaultDestinationName ( this . destinationName ) ; } if ( this . destinationResolver != null ) { jmsTemplate . setDestinationResolver ( this . destinationResolver ) ; } jmsTemplate . setPubSubDomain ( pubSubDomain ) ; }
Creates default JmsTemplate instance from connection factory and destination .