2 Replies Latest reply on Aug 16, 2008 10:58 PM by michaelcourcy

    d0e3401

    michaelcourcy

      Hi


      I Have a stateleless component with name ping


      package com.seamshop;
      
      ...import...
      
      @Stateless
      @Name("ping")
      public class PingBean implements Ping {
              
          @Logger private Log log;
              
          @In FacesMessages facesMessages;
          
          private int numSecret;
          
          public void ping()
          {
              facesMessages.add("The num secret "+ numSecret);
          }
      
          public void setNumSecret(int numSecret) {
                      this.numSecret = numSecret;
          }
          
      
          
      }
      



      And I want the properties numSecret to be configured so from the doc i create in seam.properties the property to configure the bean but it does not work


      I try all that


      ping.numSecret=35
      com.seamshop.ping.numSecret=35
      com.seamshop.ping.numSecret=35
      com.seamshop.PingBean.numSecret=35
      



      none works.


      I watch all the examples all the seam.properties where empty.


      If someone could show me the right way to write the properties I woud really appreciate.