I made a connection manager, since a connection is also used in a Pub/Sub implementation. The connection manager simply holds the Connection, Session, Username and Password(if they are required), and also ensures closure on disposal. The missing code is is the Connect method
where the Factory is instantiated by in the class constructor. -- View this message in context: http://activemq.2283324.n4.nabble.com/Receiving-multiple-duplicate-messages-Beginner-question-tp4706474p4706627.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.