1 Reply Latest reply on Mar 15, 2015 3:11 AM by Flemming Harms

    EJB 3.1 block external connection.

    Andrea Catania Newbie

      I have a Stateless bean where I want to allow access only to the client that I authorize.

      The bean:

       

      @Stateless
      
      public class LibraryBean implements LibraryIFace {
      
         @Override
         public void setName(String name){
        sb.setName( name );
         }
      
         @Override
         public String getName(){
         return sb.getName();
         }
      
         @EJB
         private SingIFace sb;
      
      }
      

      I know that every one can access to this bean.

      How can I block all connections not trusted?

      I using wildfly.

      Thanks in advance Andrea.