Ok Adrian..

iÂm using how alternative a local-tx-datasource while waiting this release...

Using this local-tx-datasource my application workÂs fine but the JbossAS 
display a following INFO message : Closing a connection for you. Plea 
se close them yourself: [EMAIL PROTECTED] 
0 

exists a solution this message?

my code for get hibernate session is:

  | public class ImportacaoService {
  |        private static final String SESSION_FACTORY_NAME = 
"java:/hibernate/SessionFactory";
  | 
  |        public Object gravar(Object obj) throws HibernateException {
  |               getSession().save(obj);
  |               getSession().flush();
  |               return obj;
  |        }
  |        private Session getSession()
  |        {
  |           return HibernateContext.getSession(SESSION_FACTORY_NAME);
  |        }
  |        
  | }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865007#3865007

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865007


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to