You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code that used to work till jersey < 2.26 (before removal of hard wiring with HK2).
We were able to create a CustomResourceMethodDispatcherProvider (implements ResourceMethodDispatcher.Provider) and bind it via custom ResourceConfig and all rest calls would be dispatched by our own own dispatcher.
But this doesn't seem to work anymore. Tried a couple of options
Changed the AbstractBinder import to jersey one,
register a custom Feature, also tried registering custom provider via Feature but it didn't let me since it was trying to replace an internal class
experiment with Provider annotation and web.xml.
Extend RequestMethodDispatcherFactory and bind it.
None of the these worked. Upon code inspection, it looks like ApplicationHandler.java constructs ResourceMethodInvoker with internal class RequestMethodDispatcherFactory. And this Factory class instantiates only 2 internal providers (VoidVoidDispatcherProvider and JavaResourceMethodDispatcherProvider).
Is there a way to associate my custom ResourceMethodDispatcher and its Provider in jersey >= 2.26 ?
The text was updated successfully, but these errors were encountered:
Above code base doesn't register my custom dispatcher.
However, on changing the code base slightly (so that it runs on tomcat 9) - changed jakarta to javax, jersey 3.x to 2.25, it works.
I have a code that used to work till jersey < 2.26 (before removal of hard wiring with HK2).
We were able to create a CustomResourceMethodDispatcherProvider (implements ResourceMethodDispatcher.Provider) and bind it via custom ResourceConfig and all rest calls would be dispatched by our own own dispatcher.
But this doesn't seem to work anymore. Tried a couple of options
None of the these worked. Upon code inspection, it looks like ApplicationHandler.java constructs ResourceMethodInvoker with internal class RequestMethodDispatcherFactory. And this Factory class instantiates only 2 internal providers (VoidVoidDispatcherProvider and JavaResourceMethodDispatcherProvider).
Is there a way to associate my custom ResourceMethodDispatcher and its Provider in jersey >= 2.26 ?
The text was updated successfully, but these errors were encountered: