activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jefetech <>
Subject Re: ActiveMQ Ajax not closing Mysql Connection
Date Mon, 31 Jul 2006 18:19:38 GMT

I may be confused here, but I shoudn't be using ActiveMQ's data source. 
Since from the JavaScript I'm making an Asyn call to a struts application
which is doing the hibernate stuff and just spitting back plain text, why is
ActiveMQ controlling the connection?   This is the simple logic in the
struts app:

    public static List getUsers() {
        Session session = null;
        List callerList = null;

            // This step will read hibernate.cfg.xml and prepare hibernate
for use
            SessionFactory sessionFactory = new
            session =sessionFactory.openSession();
              //Using from Clause
             String SQL_QUERY = SQL.getUsers;
             Query query = session.createQuery(SQL_QUERY);
             callerList = query.list();
          }catch(Exception e){
              try {
                  if (session != null) {
              } catch (Exception e) {} 
        return callerList;
View this message in context:
Sent from the ActiveMQ - User forum at

View raw message