Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-865

Support security annotations for EJB3 endpoints

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Critical
    • jbossws-1.0.1
    • jbossws-1.0.0
    • jbossws-native
    • None

    Description

      It was working in JBoss 4.0.3 SP1 but it no longer works in JBoss 4.0.4.CR2. I'm using EJB3, so I'm setting up my security via annotations, but it should not matter. Here is some code from my bean:

      Code:

      @Stateless
      @SecurityDomain("dbms")
      @RolesAllowed("dbmsuser")
      public class InventoryInfoBean implements InventoryInfo

      The call initially goes through a POJO Java Service Endpoint because you did not yet have support for EJB3 service endpoints. That POJO endpoint uses JNDI to look up the EJB from above and passes the call to it. In my client, I do the following on the Stub object:

      Code:

      stub._setProperty(Stub.USERNAME_PROPERTY, user);
      stub._setProperty(Stub.PASSWORD_PROPERTY, password);

      And this all worked in JBoss 4.0.3 SP1 but no longer in 4.0.4CR2. Can someone please verify that this will work with the new JBossWS? Thanks.

      Attachments

        Activity

          People

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: