Just browsed quickly but looks like:
@PostConstruct
public void initConnectionJMS() {
try {
LOGGER.debug("Call to initConnectionJMS");
connection = connectionFactory.createConnection();
connection.start();
connection.setExceptionListener(this);
} catch (JMSException e) {
LOGGER.error("Error when creating EJBJmsSender", e);
}
}
@PreDestroy
private void preDestroy() {
LOGGER.debug("Call to EJBJmsSender.preDestroy() ");
if (connection != null) {
try {
connection.close();
} catch (JMSException e) {
LOGGER.error("Error when destroying EJBJmsSender", e);
}
}
}
should be done in the same transactional method (ie don't use a single
connection and rely on the pool to get performances)
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-10-08 17:15 GMT+02:00 joeleclems <[email protected]>:
> Hi,
>
> This is the testCase (you can send and read message with it).
> All informations about "install" and use are in the README file.
>
> JmsTest.zip
> <http://tomee-openejb.979440.n4.nabble.com/file/n4672181/JmsTest.zip>
>
> Thanks in advance for any help.
>
> Clément
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Activemq-embedded-createSession-unable-to-make-it-work-tp4672172p4672181.html
> Sent from the TomEE Users mailing list archive at Nabble.com.