-
1. Re: How to report an issue in Wildfly?
dmlloyd Oct 1, 2014 5:49 PM (in response to ssamayoagt)File an issue at https://issues.jboss.org/browse/WFLY.
-
2. Re: How to report an issue in Wildfly?
jaikiran Oct 2, 2014 12:57 AM (in response to ssamayoagt)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 Oct 2, 2014 9:48 AM (in response to jaikiran)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 Oct 2, 2014 10:21 AM (in response to ssamayoagt)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 Oct 2, 2014 10:29 AM (in response to ctomc)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 Oct 2, 2014 10:57 AM (in response to ssamayoagt)1 of 1 people found this helpfulThere 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.
-
7. Re: How to report an issue in Wildfly?
ssamayoagt Oct 2, 2014 11:30 AM (in response to ctomc)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.