Transactions, Spring.
session.createTopic("TEST.FOO"); MessageProducer producer = session.createProducer(destination); producer.send(firstMessage); producer.send(secondMessage); session.commit(); } catch (Exception e) { session.rollback(); } Here, we’re creating a MessageProducer for the Destination of the type of