1 Reply Latest reply on Sep 29, 2006 11:54 AM by Hieu Vo

    Duke's Bank - Security for EJB

    Hieu Vo Newbie

      Hi all,

      I am trying the Duke's Bank demo. Everything seemed fine until I enable security for EJB tier. I followed instructions in http://docs.jboss.org/jbossas/getting_started/v4/html/dukesbank.html. The demo works until I put "<security-domain>java:/jaas/dukesbank</security-domain>" into jboss.xml (I got a SecuriyException). I did test security only for the Web tier (that is to put above <security-domain> tag into jboss-web.xml) and there was no problem with it.
      I used "200/j2ee" for testing. Any modification in ejb-jar.xml is needed?

      Please help!

        • 1. Re: Duke's Bank - Security for EJB
          Hieu Vo Newbie

          Problem solved.
          Some modifications are needed for the ejb-jar.xml. I've just tested by putting some lines such as:
          <method-permission>
          <role-name>bankCustomer</role-name>

          <ejb-name>TxControllerBean</ejb-name>
          <method-name>*</method-name>

          </method-permission>

          Cheers!