The fact is that, when I configure the hibernate.cfg.xml without using the jndi for datasource, but directly"jdbc:mysql://localhost:3306/***", my application works ok. I want to configure a connection pool in JBoss to tuning the proformance. so i have to use datasource.
If i comment off the code,like Session session = HibernateSessionFactory.openSession(); | ... | //tx = session.beginTransaction(); | ... | //tx.commit(); There is another problem, i can operate the object made in the transaction only once, i can not modify or delete the object later, which seems as if the transaction is not end, i can not commit any more. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830793#3830793 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830793 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
