Not the java service itself as it is designed to interface statically via the webMethods InvokeManager and pipeline, so it wouldn’t make any sense.
However you should not be writing complex java into a java service anyway but as a proper java project where you could then use springboot or any other framework/pattern.
Your java service would simply then bridge the wm service pattern to your underlying library.
regards,
John.
#webMethods#Integration-Server-and-ESB