hi ansonau.....the line
Session hsession = HibernateContext.getSession
is used only in a transaction. It take the current transaction and it continue
with it. After if i execute a session.close(), anyhow i have to wait the end of
the transaction, if no no commit will be executed.
Then the line
SessionFactory factory = (SessionFactory)
ctx.lookup("java:/hibernate/CaveatEmptorSessionFactory");
create a new transaction and it will be closed by the close() method. No
deployment descriptor or other thing can to be used to configure a transaction
with hibernate.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867833#3867833
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867833
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user