public class SpringJmsProvider extends Object implements JmsProvider
A JmsProvider that uses the spring framework to obtain a JMS ConnectionFactory and Desitnation objects.
| Constructor and Description |
|---|
SpringJmsProvider(String appContextClasspathResource,
String connectionFactoryBean,
String destinationBean)
Constructs a
SpringJmsProvider object given the name of a classpath resource (the spring application context file), and the bean names of a JMS connection factory and destination. |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.ConnectionFactory |
connectionFactory() |
javax.jms.Destination |
destination() |
public SpringJmsProvider(String appContextClasspathResource, String connectionFactoryBean, String destinationBean)
Constructs a SpringJmsProvider object given the name of a classpath resource (the spring application context file), and the bean names of a JMS connection factory and destination.
appContextClasspathResource - connectionFactoryBean - destinationBean - public javax.jms.ConnectionFactory connectionFactory()
throws Exception
connectionFactory in interface JmsProviderExceptionpublic javax.jms.Destination destination()
throws Exception
destination in interface JmsProviderExceptionCopyright © 2018 The Apache Software Foundation. All Rights Reserved.