On 7/31/06, jefetech <[EMAIL PROTECTED]> wrote:

I'm using the latest ActiveMQ 4.0.1,  with Jetty6, using Struts with
Hibernate on Mysql 4.1.7-standard.  I've altered some of the chatroom
example functions to call Struts to execute mysql updates/selects.

For some reason, activeMQ is not releasing the mysql connection.  Everytime
struts/hibernate is called, even though my code is correctly doing a
session.flush(), session.close() for hibernate,  ActiveMQ is ignoring it.

ActiveMQ uses its own  DataSource and connections, not Hibernate - so
the session.flush() won't have any effect on ActiveMQ's connections.

If you want to control how many connections ActiveMQ uses then
configure the DataSource you give to ActiveMQ to use whatever pool you
want.

--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to