Yes its possible. I struggled hard to get this solution.
Here is how you get portal session from a portlet (am using JSF portlet) -
ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
JBossActionRequest request = (JBossActionRequest) context.getRequest();
ServerInvocationContext serverContext =
request.getControllerContext().getServerInvocation().getServerContext();
HttpServletRequest clientRequest = serverContext.getClientRequest();
HttpSession session = clientRequest.getSession();
context.getRequest() - will return JBossActionRequest or JBossRenderRequest based on the
scenario
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073608#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...