Questions tagged [spring-remoting]

Spring Remoting exposes services over the web for Spring clients to consume as easily as though they were locally instantiated. Commonly, Spring Remoting is used to expose a published interface over HTTP and with data serialized between the client and server using Java serialization.

Spring features integration classes for remoting support using various technologies. The remoting support eases the development of remote-enabled services, implemented by your usual (Spring) POJOs. Currently, Spring supports the following remoting technologies:

  • Remote Method Invocation (RMI). Through the use of the RmiProxyFactoryBean and the RmiServiceExporter Spring supports both traditional RMI (with java.rmi.Remote interfaces and java.rmi.RemoteException) and transparent remoting via RMI invokers (with any Java interface).
  • Spring’s HTTP invoker. Spring provides a special remoting strategy which allows for Java serialization via HTTP, supporting any Java interface (just like the RMI invoker). The corresponding support classes are HttpInvokerProxyFactoryBean and HttpInvokerServiceExporter.
  • Hessian. By using Spring’s HessianProxyFactoryBean and the HessianServiceExporter you can transparently expose your services using the lightweight binary HTTP-based protocol provided by Caucho. (Note that Burlap, Caucho’s XML-based alternative to Hessian, is also supported but in a deprecated form).
  • JAX-WS. Spring provides remoting support for web services via JAX-WS
  • JMS. Remoting using JMS as the underlying protocol is supported via the JmsInvokerServiceExporter and JmsInvokerProxyFactoryBean classes.
  • AMQP. Remoting using AMQP as the underlying protocol is supported by the Spring AMQP project.

Useful links:

89 questions
3
votes
1 answer

Difference between the RMI Service Exporter and the HttpInvoker?

What is the difference between the RMI Service Exporter and the HttpInvoker? I know that the RMI uses RMI as underlying communication technology and the invoker standard http post. Any other differences worth noting?
user689842
3
votes
3 answers

spring remoting mapping urls

I've followed the tutorial for spring remoting, in particular HttpInvokerServiceExporter and have no problems setting up both the client and the server (factorybean). Question is, I've noticed using Spring MVC, each interface is mapped to a…
goh
  • 27,631
  • 28
  • 89
  • 151
3
votes
1 answer

spring httpinvokerserviceexporter must the client be on same framework?

Sorry i'm new to spring and have a question about the httpinvokerserviceexporter. I had a rudimentary setup by following the tutorials:
goh
  • 27,631
  • 28
  • 89
  • 151
2
votes
1 answer

Dynamic Remote Service Location - How to inject with Spring?

I'm currently working on a distributed services architecture for a project at work. Essentially, we are managing upwards of 200 machines. Each of these machines has an instance of a service running on them that allows us to interface with the…
Jason McClellan
  • 2,931
  • 3
  • 23
  • 32
2
votes
5 answers

Spring Remoting HTTP invoker - exception handling

I'm using Spring's 'HTTP Invoker' remoting solution to expose DAOs to many different applications, but have all database access in a single server. This works well, but if the server throws, say, a HibernateSystemException, Spring serializes that…
Roy Truelove
  • 22,016
  • 18
  • 111
  • 153
2
votes
1 answer

HttpInvokerServiceExporter is deprecated in spring 5. Is there any replacement? Will it be available in spring 6?

HttpInvokerServiceExporter is deprecated in spring 5. I want to call spring remote bean via HTTP protocol. Is there any replacement? HttpInvokerServiceExporter has a vulnerability of RCE also so i need to use some replacement of…
2
votes
1 answer

Streaming with Spring Framework

I have developed a client (Eclipse) server (Spring Framework on Tomcat) application using Spring Remoting over HttpInvoker. Some usecases need to transfer large files (>150MB) from server to client. Since we're on a 32Bit system on client side, I…
Philipp
  • 383
  • 5
  • 20
2
votes
1 answer

Spring RMI: How to expose without App server or servlet container?

I have a bunch of services that I've exposed over RMI with Spring. Currently, my app is configured as a web app and I deploy my app to JBoss to make my RMI services available. Is there a way that I can run my RMI exposed services without having to…
Justin Kredible
  • 8,354
  • 15
  • 65
  • 91
2
votes
1 answer

Accessing a session scoped bean through RMI: any sense?

I am debugging a web application, where each logged in user has a "session variable map" implemented in a simple Spring session scoped bean that has a session scoped HashMap bean injected. Originally these beans were in the main webapplication's…
jabal
  • 11,987
  • 12
  • 51
  • 99
2
votes
2 answers

Spring HttpInvoker vulnerable to recent deserialization exploit before authentication?

The recent Foxglove Security article on Java deserialization attacks with links to example code for targeting major app servers, as well as Spring and Groovy apps, is raising lots of consternation. The article states that these exploits bypass…
btburt
  • 61
  • 1
  • 5
2
votes
2 answers

Spring Remoting - HTTP Invokers

What do you think of Spring's HTTP Invokers? I'd like that two Tomcat servers exchange objects, exposed by a service, through HTTPS. Do you think that Spring HTTP Invoker is a good choice? Thx
Eric V
  • 1,150
  • 1
  • 9
  • 24
2
votes
0 answers

How to use spring remoting with hessian and spring security?

We have a three tier architecture and we are using spring remoting in combination with hessian. Currently we have a client app and the business app is running on two different tomcats. Tomcat 1 Tomcat 2 ---------- ------------ |…
Daniel
  • 835
  • 1
  • 7
  • 18
2
votes
1 answer

Spring Remoting RMI , client failover to standby server

Env : Spring Framework 3.2.3.RELEASE Is there a way achieve failover with RmiProxyFactoryBean or any other in a straight forward spring context configuration ? I have a ServerA as primary & ServerB as alternate RMI servers. If connection to ServerA…
Ahamed Mustafa M
  • 3,069
  • 1
  • 24
  • 34
2
votes
2 answers

Load-Testing a Java-Client-Server-Application

we use spring-remoting for a Client-Server-Application. Now we are in doubt how to realize a real load test with serialized objects. The problem is that many load testing toolkits are based on plain text HTTP communication, so it's very easy to…
shylynx
  • 597
  • 1
  • 7
  • 25
2
votes
2 answers

Spring Remoting Serialization and De-serialization

We have been using Spring Remoting in our project for sometime. It is used with some other systems to access our web-services. We are currently evolving in terms of what parameters web service takes; but at the same time we are trying to be…
Priyank
  • 14,231
  • 18
  • 78
  • 107