org.logicblaze.lingo.jms.impl
Class DefaultJmsProducer
java.lang.Object
org.logicblaze.lingo.jms.impl.JmsProducerImpl
org.logicblaze.lingo.jms.impl.DefaultJmsProducer
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, JmsProducer
- public class DefaultJmsProducer
- extends JmsProducerImpl
A default implementation of the JmsProducer
which contains a reference to the
connection, session and producer so that it can easily close down all its resources properly.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJmsProducer
public DefaultJmsProducer(Connection connection,
Session session,
MessageProducer producer)
newInstance
public static DefaultJmsProducer newInstance(ConnectionFactory factory)
throws JMSException
- Throws:
JMSException
newInstance
public static DefaultJmsProducer newInstance(Connection connection)
throws JMSException
- Throws:
JMSException
getConnection
public Connection getConnection()
close
public void close()
throws JMSException
- Specified by:
close
in interface JmsProducer
- Overrides:
close
in class JmsProducerImpl
- Throws:
JMSException
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.