What is the lifecycle of your "RESTful-Webservice" implementation?
As you are using a stateless session bean, it's lifecycle is closely coupled with the object into which it is injected.
thank you for your answer. I know that the lifecycles are closely coupled together. But I don't think that the SLSB is destroyed because of the destruction of the RESTful-Webservice. The webservice is still there.
In addition: I noticed this behaviour only with Wildfly 8 Final, neither with JBoss AS 7.1.1 Final or Glassfish 4.
Thanks in advance and regards,
1 of 1 people found this helpful
In WildFly 8.0.0.Final SLSB instance pooling is disabled by default This means that each call creates it's own instance that just lives for the duration of the call.
Try to enable pooling by the following CLI command:
thank you for your answer - I think that was the right hint. Now it works as I knew it from the other application server.
Now I wonder if I've used SLSB in the wrong way in the past...
Thank you very much for the helpful answer!
PS: Thanks to Stephen, too.