7 Replies Latest reply on Oct 2, 2014 11:30 AM by ssamayoagt

    How to report an issue in Wildfly?

    ssamayoagt

      How to report an issue in Wildfly?

       

      I think I just bump with a bug so I want to report it.

       

      The issue is this:

      If i implement a JAX-RS as Stateless EJB the bean is destroyed as soon as the response is sent to client, or at least seems that.

      I tried the same code in Glassfish 4.1 and bean is not destroyed as in WildFly 8.1.

       

      Regards.

        • 1. Re: How to report an issue in Wildfly?
          dmlloyd
          • 2. Re: How to report an issue in Wildfly?
            jaikiran

            Sergio Samayoa wrote:

             

             

            The issue is this:

            If i implement a JAX-RS as Stateless EJB the bean is destroyed as soon as the response is sent to client, or at least seems that.

            I tried the same code in Glassfish 4.1 and bean is not destroyed as in WildFly 8.1.

             

             

            That doesn't look like an issue. Stateless beans can be destroyed by the server when they are not in use. In WildFly 8 stateless beans are not pooled, so they are destroyed as soon as their use is done. This behaviour doesn't violate any spec. As for GlassFish, it perhaps pools the stateless beans for reuse.

            • 3. Re: How to report an issue in Wildfly?
              ssamayoagt

              jaikiran pai wrote:

               

              That doesn't look like an issue. Stateless beans can be destroyed by the server when they are not in use. In WildFly 8 stateless beans are not pooled, so they are destroyed as soon as their use is done. This behaviour doesn't violate any spec. As for GlassFish, it perhaps pools the stateless beans for reuse.

               

              Even that you may be right in respect to the spec one of the benefits of using EJBs is pooling and reuse so a "reasonable" default pooling policy without the need of any configuration (as Glassfish and Weblogic at least) should be provided out of the box.

               

              Regards.

              • 4. Re: How to report an issue in Wildfly?
                ctomc

                Sergio Samayoa wrote:

                 

                jaikiran pai wrote:

                 

                That doesn't look like an issue. Stateless beans can be destroyed by the server when they are not in use. In WildFly 8 stateless beans are not pooled, so they are destroyed as soon as their use is done. This behaviour doesn't violate any spec. As for GlassFish, it perhaps pools the stateless beans for reuse.

                 

                Even that you may be right in respect to the spec one of the benefits of using EJBs is pooling and reuse so a "reasonable" default pooling policy without the need of any configuration (as Glassfish and Weblogic at least) should be provided out of the box.

                 

                Regards.

                This is configurable, you can configure SLSB pooling or not, by default it is not, but there are discussions to change the default.

                • 5. Re: How to report an issue in Wildfly?
                  ssamayoagt

                  Tomaz Cerar wrote:

                   

                  This is configurable, you can configure SLSB pooling or not, by default it is not, but there are discussions to change the default.

                  I'm aware of that now but I expected that SLSB were pooled as in other app servers and I think is a bad idea not having them pooled by default.

                  Regards.

                  • 6. Re: How to report an issue in Wildfly?
                    ctomc

                    There was long debate on this topic not so long ago.

                     

                    i would recommend you to read http://wildfly-development.1055759.n5.nabble.com/Pooling-EJB-Session-Beans-per-default-td5714566.html

                    to get bit more background.

                    1 of 1 people found this helpful
                    • 7. Re: How to report an issue in Wildfly?
                      ssamayoagt

                      Tomaz Cerar wrote:

                       

                      There was long debate on this topic not so long ago.

                       

                      i would recommend you to read http://wildfly-development.1055759.n5.nabble.com/Pooling-EJB-Session-Beans-per-default-td5714566.html

                      to get bit more background.

                       

                      Interesting reading, thanks.

                      Regards.