This content has been marked as final.
Show 4 replies
-
1. Re: How to close ejb remote session? (EJB Client API)
dmlloyd Oct 2, 2014 9:30 AM (in response to maurizio.mueller)A stateless EJB does not have a session. Are you referring to something else, like the EJB instance not being destroyed, or maybe the connection remaining?
-
2. Re: How to close ejb remote session? (EJB Client API)
maurizio.mueller Oct 2, 2014 11:18 AM (in response to dmlloyd)Hi David,
Yes is correct ejb stateless hasn't session, my mistake.
The problem is: the connection is not closed!
-
3. Re: How to close ejb remote session? (EJB Client API)
maurizio.mueller Oct 3, 2014 11:24 AM (in response to maurizio.mueller)There is the method close() in the class EJBClientContext on Wildfly 8.1
EJBClientContext.getSelector().getCurrent().close();
-
4. Re: How to close ejb remote session? (EJB Client API)
wdfink Oct 3, 2014 11:48 AM (in response to maurizio.mueller)In general the connection is keept open as the selector can be used as long as the client is alive.
If you close the context you need to register a new selector for the next invocation.
Why do you need such approach?