2 Replies Latest reply on Jul 1, 2002 3:52 AM by Panagiotis Korros

    Security Proxy access to entity bean in JBoss 3.0

    Panagiotis Korros Newbie

      I'm implementing a security proxy for my entity bean named NodeBean.
      I want to check the permissions a user has over a node.
      In the security proxy, I am trying to bind to the PermissionBean using the code above:

      InitialContext ic = new InitialContext();
      PermissionHome permHome = (PermissionHome) ic.lookup("java:comp/env/ejb/PermissionLocalHome");
      permHome.findByUserAndNodeId((Integer)ctx.getPrimaryKey(),new Integer(caller));

      but it throws:
      javax.naming.NameNotFoundException: PermissionLocalHome not bound

      the jboss.xml section for the PermissionBean is:

      <ejb-name>PermissionBean</ejb-name>
      <local-jndi-name>ejb/PermissionLocalHome</local-jndi-name>


      can anyone help? how can i obtain a reference to the PermissionBean Home Local interface?