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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to