1 Reply Latest reply on Apr 12, 2011 6:17 AM by florianhell

    Begin Annotation on @PostConstruct methods

    stormqueen

      I try to start a conversation with @Begin on a @PostConstruct method but nothing happens. I have to start a conversation via conversation.begin().


      When I start a conversation with @Begin on any other method the conversation is started correctly.


       //not working 
       @PostConstruct
       @Begin
       public void init() {
          String id = conversation.getId(); // no ID
       }
       
       //working
       @Begin
       public void start() {
          String id = conversation.getId(); // ID
       }
      



      Why is the @Begin annotation not applied on a @PostConstruct method?


      Thanks - MK