0 Replies Latest reply on Nov 20, 2006 1:31 AM by sanjeeth s

    <exclude-list> in ejb-jar.xml doesnt work

    sanjeeth s Newbie

      hello All,
      I am using the <exclude-list> in the ejb-jar.xml to restrict a method call from the client. My deployment succede but from the client invoking that method succedes without any exception.

      ejb-jar.xml
      <ejb-jar>
      <enterprise-beans>

      <ejb-name>ejb1</ejb-name>
      test.CurrencyHome
      test.Currency
      <ejb-class>test.CurrencyBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </enterprise-beans>
      <assembly-descriptor>
      <exclude-list>

      <ejb-name>ejb1</ejb-name>
      <method-name>test</method-name>

      </exclude-list>
      </assembly-descriptor>
      </ejb-jar>

      jboss.xml

      <enterprise-beans>

      <ejb-name>ejb1</ejb-name>
      <jndi-name>cc</jndi-name>
      <local-jndi-name>cclocal</local-jndi-name>

      </enterprise-beans>


      In the above xmls i have specified the method name "test" to restrict. The Method "test" is declared in the remote interface. From the client when i call method "test" it succedes. Is there any other configuration needs to be done for this to work. Could anybody please help me out regarding this issue.

      thanks in advance
      sanjeeth S