users@tyrus.java.net

Re: What is the default mechanism for releasing endpoints?

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 24 Mar 2015 18:22:07 +0100

Hello Isart,

we don't do anything special, we just remove the reference to it.

CDI/DI case is more complicated, Tyrus has to let DI framework know that
the instance should be destroyed, see [1] for CDI integration example.

Do you see any unexpected behavior?

Regards,
Pavel


[1]
https://github.com/tyrus-project/tyrus/blob/master/containers/glassfish/cdi/src/main/java/org/glassfish/tyrus/gf/cdi/CdiComponentProvider.java

On 24/03/15 17:37, Isart Canyameres wrote:
> Hi,
>
> According to Tyrus user guide:
> https://tyrus.java.net/documentation/1.10/user-guide.html#d0e870
> (...), Tyrus uses one endpoint instance per VM per connected peer.
> Therefore one endpoint instance typically handles connections from one
> peer. "
>
> To my understanding, this means by default each time a peer connects an
> endpoint is instantiatied.
> What mechanism is used to release these endpoints?
>
> Thank you,
>
> --
> /
> /
> /Isart Canyameres Giménez/
> /
> //Senior Software Engineer
>
> Software Engineering Group (SEG)
> Fundacio i2CAT, Internet i Innovacio Digital a Catalunya
> C/ Gran Capita 2-4, Nexus I building, 1st floor, office 107
> 08034 Barcelona, Spain
> /
> /
> P: +34 93 553 25 23 (Int. Ext.: 523)
> w3: www.i2cat.net <http://www.i2cat.net>
> /
> <http://dana.i2cat.net>