public class SpringJmsProvider extends Object implements JmsProvider
JmsProvider
that uses the spring framework
to obtain a JMS ConnectionFactory
and
Desitnation
objects.
The constructor takes three arguments:
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()
Provides the JMS
ConnectionFactory . |
javax.jms.Destination |
destination()
Provides the
Destination (topic or queue) from which the
JmsSpout will receive messages. |
public SpringJmsProvider(String appContextClasspathResource, String connectionFactoryBean, String destinationBean)
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
- - the spring configuration file (classpath resource)connectionFactoryBean
- - the JMS connection factory bean namedestinationBean
- - the JMS destination bean namepublic javax.jms.ConnectionFactory connectionFactory() throws Exception
JmsProvider
ConnectionFactory
.connectionFactory
in interface JmsProvider
Exception
public javax.jms.Destination destination() throws Exception
JmsProvider
Destination
(topic or queue) from which the
JmsSpout
will receive messages.destination
in interface JmsProvider
Exception
Copyright © 2023 The Apache Software Foundation. All rights reserved.