My question is about the use of the following 2 factories:
- ConnectionFactory
- QueueConnectionFactory
At the moment I just use a ConnectionFactory
to initialize everything:
Connection conn = factory.createConnection(user, pw);
Session session = conn.createSession()
Destination dest = session.createQueue('xyz')
...
If I understand correctly, the QueueConnectionFactory
works pretty much the same way. Is it the exact same thing ?
I am wondering especially because I'm using a JNDI context which contains both objects. So, I'm not sure which one I should prefer to use.