5 Replies Latest reply on Dec 16, 2005 3:21 PM by Vivek Srivastav

    Correct Syntax for Service Bean

    Matt Johnston Newbie

      I have seen a lot of different examples of creating a @Service bean. The current EJB3 Trail tutorial is not correct (it doesn't work as printed). I have tried to create a service bean using

      @Service
      @Management(Indexing.class)
      
      public class IndexingBean implements Indexing {
      
      public void start() throws Exception
      {
       log.info("IndexerService - Starting");
      }
      }
      


      But my start() method is never called. I am not using a jboss-service.xml file. If someone has a working example they can post, I would be very thankful.