Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1902

Cannot use Seam EntitySecurityListener and MDBs

    Details

      Description

      After turning on Seam's EntitySecurityListener, the follow exception occurs when working with a @Restrict-annotated entity from a MDB.

      java.lang.IllegalStateException: No active session context
      at org.jboss.seam.security.Identity.instance(Identity.java:157)
      at org.jboss.seam.security.EntitySecurityListener.postLoad(EntitySecurityListener.java:26)
      ...

      There obviously isn't a session context in this case.

      Seam probably shouldn't check security permissions when there is no active session context. As well it would be useful to be able to programatically turn off security on a per-Identity basis. Please see the referenced Forum link for more details.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shane.bryzak Shane Bryzak
                Reporter:
                mtpettyp Mike Pettypiece
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: