-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArC: make it possible to activate the session context for a specific business method in a test #45146
Comments
Hm, I think that we should move the logic from WebSocketSessionContext into ArC because it does not contain anything WS Next-specific. It's actually almost identical to |
Wouldn't that lead to a possible conflict with Undertow extension impl of |
It should not. First of all, it's perfectly fine to have multiple contexts registered for a scope. However, only one can be active at a given time. The plan is to only register the activating binding/interceptor for tests. And obviously, the interceptor should do nothing if the context is already active. |
Got it; in that case, it should be perfectly fine 👍 |
- it's only available in tests - fixes quarkusio#45146
- it's only available in tests - fixes quarkusio#45146
- it's only available in tests - fixes quarkusio#45146
Description
Currently, it's not possible to test a
@SessionScoped
component used in a WS Next app outside the real websocket communication. That is quite limiting.Implementation ideas
We could provide an annotation similar to
@jakarta.enterprise.context.control.ActivateRequestContext
.The text was updated successfully, but these errors were encountered: