1 Reply Latest reply on Oct 19, 2005 8:05 AM by didi mann

    Two Session Beans - same method invocation?

    didi mann Newbie

      Hi,

      I am experiencing a strange thing:

      I have two stateful session beans, each has its own start method:

      Bean 1:

      @Stateful
      @Conversational(ifNotBegunOutcome="adminpage")
      @Name("skilltypeditadmin")
      //@Scope(EVENT)
      @Interceptor(SeamInterceptor.class)
      //@LoggedIn
      public class SkillTypEditAdminAction
      ...
      @Begin
      public String start() {
      log.info("in start: skill_TYP_edit");
      loadData();
      return "skilltypeditadmin";
      }



      Bean2:

      @Stateful
      @Conversational(ifNotBegunOutcome="adminpage")
      @Name("skilladminedit")
      //@Scope(EVENT)
      @Interceptor(SeamInterceptor.class)
      //@LoggedIn
      public class SkillAdminEditAction
      ...
      @Begin
      public String start() {
      log.info("in start: skilledit");
      loadData();
      return "skilleditadmin";
      }


      I invoke those methods via commandLinks as follows:


      <h:form>
      <fieldset>
      <div class="notes">
      <h:commandLink action="#{skilltypeditadmin.start}">Skilltypen bearbeiten</h:commandLink>
      </div>
      <div class="notes">
      <h:commandLink action="#{skilladminedit.start}">Skills bearbeiten</h:commandLink>
      </div>
      </fieldset>
      </h:form>



      The output, when I click each of the links once, on the console of the AppServer is:

      11:40:04,724 INFO [MyfacesConfig] No context init parameter 'org
      .AUTO_SCROLL' found, using default value false
      11:40:10,772 INFO [SeamInterceptor] in start: skill_TYP_edit
      11:40:16,681 INFO [SeamInterceptor] in start: skill_TYP_edit



      I'm struggling with this for a while...
      Any idea?

      Thanks
      hoteschmann