I am trying to use A4J in a portlet. The functionality is to display the user details when
the user clicks on the user row in the search results.
I am using the identity modules to retrieve the user list (by role). This works fine.
However when I use A4J to retrieve the user details in a managed bean action the
UserModule.getUserById() gives the exception
org.hibernate.HibernateException: Unable to locate current JTA transaction
at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
at
org.jboss.portal.identity.db.HibernateUserModuleImpl.getCurrentSession(HibernateUserModuleImpl.java:298)
at
org.jboss.portal.identity.db.HibernateUserModuleImpl.findUserById(HibernateUserModuleImpl.java:136)
at
com.apple.ist.channelportal.admin.managedbeans.ManageUsersBean.retrive(ManageUsersBean.java:50)
I have set the tran-attribute = required in jboss-portlet.xml
Please help !!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148026#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...