[JBoss-user] [JBoss Portal] - Re: Error accesing Hibernate current session and UserModule

2006-03-04 Thread al_kiev
Had the same problem in the code that executed outside of standard TransactionInterceptor the solution is to wrap your calls to transactions using the following technique: | TransactionManager tm; | | | try { | tm = TransactionManagerProvider.JBOSS_PROVIDER.getTransactionMan

[JBoss-user] [JBoss Portal] - Re: Error accesing Hibernate current session and UserModule

2006-02-15 Thread xmaniac
That works great with portlets. As a matter of fact, I was using it already. However my problem arises when accesing the portal context from a Spring bean (not referenced by a portlet) or a servlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923990#39239

[JBoss-user] [JBoss Portal] - Re: Error accesing Hibernate current session and UserModule

2006-02-15 Thread the-gtm
I'm not accessing UserModule but I got the same exception in a portlet when I tried to use my own SessionFactory, so my solution might apply to your case. Try to edit jboss-portlet.xml to add a "transaction" element : | | | MyPortlet | | Required |