6 Replies Latest reply on Mar 24, 2008 10:27 PM by Pramod Nair

    How to setup wsse usernametoken for ejb3 based web services?

    Wu Xiao Newbie

      I have tried to solve this for several weeks for jboss on either 4.2.2 or 5 beta 4 and was very frustrated. And I have easily configured this feature in Glassfish v3 and Oracle AS 10g. Now I work on a very simple web service annotated from a session bean as following:

      @webservice
      @stateless
      public class Test{
      @Resource SessionContext context;
      public test(){
      String userName =
      context.getCallerPrincipal().getName();
      System.out.println("The calling user is " + userName);
      }
      }

      I would like to see how step by step to configure only the usernametoken wsse feature for the web service against an LDAP source such as openldap or active directory in a jboss server (any version), so that the ejb test method is invoked and it prints the user name of the caller in the console (or log).

      Your assistance is greatly appreciated.

      Wu