|
|
Re: Is there a way to register a global service handler without a UIThread? [message #1821756 is a reply to message #1821744] |
Wed, 19 February 2020 11:06  |
Eclipse User |
|
|
|
A ServiceHandler is run in the user session. If you don't need that, then using the servlet registry directly is probably the best solution. I have used both methods in the past.
If you're using the workbench-style application, then you can register service handlers via the extension point (org.eclipse.rap.ui.serviceHandler) in your plugin.xml. If you're using RWT only, then this won't work.
In my current application, I register the service handler in my Application.start method. Of course, this is the entry point to the UISession, so like you said that might not be what you're looking for. Sounds like the servlet registry you found is probably what you want.
|
|
|
Powered by
FUDForum. Page generated in 0.03132 seconds