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
0
votes
2 answers

Could not deserialize result from HTTP invoker remote service [...]; nested exception is java.lang.ClassNotFoundException:

I am receiving the following error only when a shared library is added to my application on an IBM WebSphere instance (version 8.5.xx). The goal is to move a lot of shared libraries (jars) between some applications to a shared library on the server…
tbcrawford
  • 387
  • 1
  • 8
  • 23
0
votes
1 answer

What is the JNDI name should I use to lookup for a remote interface deployed in websphere using Spring Boot?

I have a remote interface deployed in websphere 8.5.5 and I want to look up for this in spring boot application. I have made similar interface in my spring boot as common interface RMI I also used SimpleRemoteStatelessSessionProxyFactoryBean but the…
Hamada
  • 53
  • 5
0
votes
1 answer

Spring-remoting SimpleHttpInvokerRequestExecutor retries request when it shouldn't

I am investigating a quite strange problem. The project I'm working on uses Spring-remoting to invoke methods over http. From what I have gathered so far the following happens: My client code executes a request to the server The server starts…
Tobb
  • 11,850
  • 6
  • 52
  • 77
0
votes
1 answer

Spring remoting proxy injection to a spring defined FXMLController in initialization throws NoSuchBeanDefinitionException

As the title says, i have a server application which defines a RmiServiceExporter like this: @Bean RmiServiceExporter exporter() { Class serviceInterface = Service.class; RmiServiceExporter exporter = new…
Vlad Ilie
  • 1
  • 1
0
votes
1 answer

Spring - Cannot deserialize result from HTTP invoker remote service

This error occurs when I'm trying to invoke a method available for me through spring's remote service. The error is as follows: org.springframework.remoting.RemoteAccessException: Cannot deserialize result from HTTP invoker remote service [remote…
gourmej
  • 3
  • 1
  • 6
0
votes
0 answers

JaxWsPortProxyFactoryBean and thread-safety?

We use JaxWsPortProxyFactoryBean for accessing easily SOAP webservices. We have a specific service class annotated with the @Service from Spring which gets injected with this service proxy and which will be used in a controller. What happens if…
olibur
  • 337
  • 5
  • 13
0
votes
0 answers

What is the concept of Remoting, Spring Remoting?

I am learning Spring Framework, and many places I came across "Spring Remoting". As I can guess "Spring Remoting" would be Spring's support for Remoting. My doubt is what is Remoting? And is Spring Remoting different from normal Remoting. Any…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
0
votes
3 answers

Spring Boot and Spring AMQP RPC - No converter found to convert exception

I have several tutorials working with Spring Boot and RPC through RabbitMQ. However, as soon as I attempt to add a Jackson JSON message converter, it all falls to pieces. The remote invocation is successfully received by the server, so I feel…
Lukas Bradley
  • 410
  • 3
  • 10
0
votes
0 answers

Integrating BIRT with Spring Remoting Error

I am new to BIRT and I followed the following example to integrate BIRT with spring remoting example in devshare: https://spring.io/blog/2012/01/30/spring-framework-birt I am getting the following exception: Multiple exceptions occurred. Hide…
Toni N
  • 1
0
votes
1 answer

Implementing Web Services with spring without using spring-remoting-2.0.8.jar as this jar is not released by spring community

We are trying to implement Web Services with spring and axis. As a reference we used THIS SITE.Here they have suggested to implement end point by extending ServletEndpointSupport as below import…
chandu ram
  • 251
  • 2
  • 5
  • 19
0
votes
1 answer

Spring HttpInvokerServiceExporter: Deserialized Attribute Objects not complete on Linux

I'm using Spring 4.0.4 and use HttpInvoker from Spring to update Objects of a different application which is usually running on the same Tomcat. The problem is, that attributes, which are customized Objects, only contain the unique Id and no other…
0
votes
0 answers

Java : Using Spring remoting for getting objects from server

I am working on a JavaSE application in which I would like to connect to a Spring-MVC based server to get List of objects, Objects itself. I looked up on net, and came upon JSON. While I agree that it is working, but it is very inefficient as I have…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
1 answer

httpinvoker not working when csrf protection is enabled in server

I have two spring web applications secured with spring security. These two applications communicate with each other through spring httpInovoker. Access controlling is working fine. But when I enable in spring security under
0
votes
1 answer

accessing http invoker service from a test client protected by spring security in spring remoting

I have an spring remoting implemented via HttpInvoker . My client and service looks like below taken from spring docs I followed the spring doc: (sorry I could not post actual code due to company policy)=>spring docs My httInvoker service is…
0
votes
0 answers

java/spring remoting options

I have a java method that returns a byte array and the size can very from few KB to a few hundred MB. I want to make this method available for remote execution maintaining good performance so that clients can get the data and process it further. I…
Mark1234
  • 589
  • 2
  • 8
  • 24