I've changed the following line:

Session session = HibernateContext.getSession("java:portal/SessionFactory"); 

with:

Session session = ((SessionFactory)new 
InitialContext().lookup("java:portal/SessionFactory")).openSession();

and it had functioned...

what can be the problem?

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

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


-------------------------------------------------------
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-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to