Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5077

"JBAS014101: Failed to find SFSB instance with session ID" calling @javax.ejb.Remove method

    XMLWordPrintable

Details

    Description

      Calling a SFSB @javax.ejb.Remove method results an ugly INFO message in the logs:

      e.g. (modified helloworld-jsf quickstart):

      @Named
      @Stateless
      public class RichBean  {
      
          @Resource
          SessionContext sessionContext;
      
          public void greet() {
             TestEjb testEjb = (TestEjb)sessionContext.lookup("java:app/jboss-as-helloworld-jsf/TestEjb");
             System.out.println(testEjb.greet());
             testEjb.remove();
          }
      }
      
      @Stateful
      public class TestEjb
      {
         @Remove
         public void remove() {
            
         }
         
         public String greet() {
            return "Hello";
         }
      }
      
                      <h:form id="helloWorld">
                          <h:commandButton action="#{richBean.greet()}" value="Greet" />
                      </h:form>
      
      14:35:46,105 INFO  [stdout] (http-/127.0.0.1:8080-1) Hello
      14:35:46,106 INFO  [org.jboss.as.ejb3] (http-/127.0.0.1:8080-1) JBAS014101: Failed to find SFSB instance with session ID {[95, 12, 97, -35, -110, -123, 79, -16, -116, -95, -99, -57, 52, 38, 81, 85]} in cache
      

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              maschmid@redhat.com Marek Schmidt
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: