[jboss-user] [JBoss Portal] - Re: Servlet calling java:portal/UserModule
do-not-reply at jboss.com
Fri Mar 21 05:10:37 EDT 2008
I don't know exactly, but I would not do like that.
I don't think that using a identitySessionFactory.openSession() is the proper way.
1) did you search the forum post before you posted your question ?
I am quite sure there is some post about this kind of things.
2) to be able to know if the user is registered or not, you can use the security feature and not the directly rebuild it with the user module, etc...
The getPrincipal() method of the servlet request is for that.
may be it is not enough for what you need ?
3) look at how the portlet servlet get the transaction, when the descriptor tells to the container to inject one.
any portlet is also in a servlet : so the way it get the transaction is the best example to do it...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138252#4138252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138252
More information about the jboss-user