use ..

org.jboss.hibernate.session.HibernateContext.getSession("java:/hibernate/SessionFactory");
Or what ever yopu have defined for SessionFactoryName in your hibernate mbean.

This will return a session. If you are within an ejb your session becomes part of the 
ejb transaction. When the ejb transaction is commited so will your hibernate session.

Otherwiise use the session as per normal..




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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to