On 3/26/26 14:00, 'William Burke' via Quarkus Development mailing list
wrote:
> I worked around it by unwrapping the proxy before going async. I did
> notice (I think :-) ) that the request context was still active? Is
> that the only context that gets propagated?
Yes, AFAIK the request context is the only CDI context that gets propagated.
>
> Will I need to write my own ThreadContextProvider for SessionScoped and
> just register it as a build item or META-INF/services?
> Same for a custom scope?
I wouldn't do that. I would simply not use a @SessionScoped bean like
this (Multi.emitOn(Infrastructure.getDefaultExecutor()) etc.). It's a
huge mismatch IMO.
>
> Finally, will Mutiny and the default @Inject ManagedContext pick this
> propagation up automatically?
I have no idea what you're talking about. Maybe someone more skilled in
MP CP?
>
> Thanks,
>
> Bill
>
> On Thu, Mar 26, 2026 at 4:14 AM 'Martin Kouba' via Quarkus Development
> mailing list <
quark...@googlegroups.com <mailto:
quarkus-
>
d...@googlegroups.com>> wrote:
>
> Yes, so injected WebSocketConnection is a session-scoped bean. So it's
> only available inside the callback methods. However, you can also
> "inject" WebSocketConnection as a method param. The method argument is
> not a client proxy of a CDI bean but a regular WebSocketConnection
> instance that can be used anywhere. Finally, you can also list/filter
> all open connections [1]; i.e. OpenConnections#findByConnectionId().
> The
> returned connection is not a client proxy either, so it will also work
> anywhere.
>
> HTH
>
> Martin
>
> [1]
>
https://quarkus.io/guides/websockets-next-reference#list-open-
> connections <
https://quarkus.io/guides/websockets-next-
> reference#list-open-connections>
>
>
> On 3/26/26 07:41, clement escoffier wrote:
> > That's a good question.
> >
> > Martin, do you know? My guess is that the connection is
> accessible (so
> > you can write), but the scope is not.
> >
> > Clement
> >
> >> On 26 Mar 2026, at 00:05, 'William Burke' via Quarkus Development
> >> mailing list <
quark...@googlegroups.com <mailto:
quarkus-
> <mailto:
quarkus-dev%2Bunsu...@googlegroups.com> <mailto:
quarkus-
> <mailto:
quarkus->
> >>
dev+uns...@googlegroups.com
> <mailto:
dev%2Bunsu...@googlegroups.com>>.
> <
https://groups.google.com/d/msgid/>
> >> quarkus-dev/
> >>
> CAL%3DE%3DjQDy_sXzCSrRndzzD_tzcm3whPTwteCMvpu_43dueKmgA%
40mail.gmail.com <
http://40mail.gmail.com> <
https://groups.google.com/d/msgid/quarkus-dev/CAL%3DE%3DjQDy_sXzCSrRndzzD_tzcm3whPTwteCMvpu_43dueKmgA%40mail.gmail.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/quarkus-dev/CAL%3DE%3DjQDy_sXzCSrRndzzD_tzcm3whPTwteCMvpu_43dueKmgA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Quarkus Development mailing list" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to
quarkus-dev...@googlegroups.com
> <mailto:
quarkus-dev%2Bunsu...@googlegroups.com> <mailto:
quarkus-
> <mailto:
quarkus->
> >
dev+uns...@googlegroups.com
> <mailto:
dev%2Bunsu...@googlegroups.com>>.
> quarkus- <
https://groups.google.com/d/msgid/quarkus->
> > dev/A8D2900B-6121-42D7-9FD5-3DA361CB30EB%
40gmail.com
> <
http://40gmail.com> <https://
> >
groups.google.com/d/msgid/quarkus-dev/ <
http://groups.google.com/
> d/msgid/quarkus-dev/>
> > A8D2900B-6121-42D7-9FD5-3DA361CB30EB%
40gmail.com
> <
http://40gmail.com>?
> > utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
quarkus-dev...@googlegroups.com
> <mailto:
quarkus-dev%2Bunsu...@googlegroups.com>.
> quarkus-dev/2fa811ba-1e61-4f31-b815-c9b95ad7ee2c%
40redhat.com
> <
https://groups.google.com/d/msgid/quarkus-dev/2fa811ba-1e61-4f31-
> b815-c9b95ad7ee2c%
40redhat.com>.
> dev/CAL%3DE%3DjSAZgwvEVunbRxqMEG7MZcJFcY%2BBNBdwG650eKiG-
> jGHA%
40mail.gmail.com <
https://groups.google.com/d/msgid/quarkus-dev/
> CAL%3DE%3DjSAZgwvEVunbRxqMEG7MZcJFcY%2BBNBdwG650eKiG-
> jGHA%
40mail.gmail.com?utm_medium=email&utm_source=footer>.