1 Reply Latest reply on Sep 30, 2007 3:38 AM by julien1

    Portal security with EJB

    andixt

      Hi. I have application which runs under its own context, and it cotains portlets, which are deployed to Jboss Portal. For DAL I've choosed EJB3. I have problem with permissions: If I call EJB DAO methods from portlets then everything ok, but when I run EJB from Struts actions, which are deployed from my appliaction, EJB complains on permissions. I've checked - my struts actions doesn't have Principals, so I see Portal authorization module doesn't tell to my struts actions that authorization has been done. So, the questions is: Is its possible bind somehow my application with Struts to Jboss Portal so EJBs called from actions will work properly?

      Thanks.

        • 1. Re: Portal security with EJB

          did you declare your roles in portlet.xml ? because it could be possible that your subject has roles, the portlet does not show them but still they are propagated to the EJBs.