I need to expose some service for remote use by Java clients (they shall use httpinvoker) and other languages (they shall use REST).
Can I configure spring boot to expose both ? (I would not mind if two separate instances with different ports would be used, like in this post).
I dumped the idea of providing an API for the Java clients that internally uses REST because it is rather tedious to wire all REST endpoints into the code manually using RestTemplate.
I like the concept of HttpInvoker because a ProxyFactoryBean
gets used automagically. If Spring Remoting would be able to do this in a way it can be done for JMS, AMQP and the others I would head this way.
You can use something like this. Expose your services as a rest service. Then make your java clients to consume those services using http or some other library. If any other party is interested also, they can consume it in their own way too.
Else you can create your own jar consuming your rest services and let your java clients use that, without the knowledge about the rest service.