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
1
vote
0 answers

HttpInvoker get choked when trying to return a list with 1000 elements

I wrote a small service class which return a list with 1000 strings. I am using Spring Httpinvoker to get the service and read the list. If the number of the elements in the list is 100 all is going well when I try 1000 it freeze utill there is a…
Nehemia
  • 211
  • 1
  • 3
  • 8
1
vote
0 answers

What serialisation attacks does Spring's HTTPInvoker mechanism allow when proxy classes are not accepted?

I would like to assess the security of my Spring-based client-server application which uses Spring's HTTPInvoker mechanism for exchanging data. I know several vulnerabilities regarding the Java serialisation used by the HTTPInvoker have been…
Uwe
  • 844
  • 8
  • 13
1
vote
1 answer

how to set dynamic header in spring remoting

We need to call a Bean class using spring remoting and also set dynamic header in the call. We can set custom HttpInvokerRequestExecutor in the HttpInvokerProxyFactoryBean and add header but how to set dynamic header generated on the fly for the…
1
vote
0 answers

Can we access spring services outside the web application?

We use spring 4.3 and spring boot version 1.5 in our web application. For (product) analytics purposes we want to read the metadata of our product which is persisted in an RDBMS store (Oracle). Our application uses spring framework to define…
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
1
vote
1 answer

Observing argument type mismatch Spring Amqp Remoting With Kotlin

Though there is exactly 1 parameter for Service i am always hitting argument mismatch when using spring with kotlin combination. i have also debugged org.springframework.remoting.support.RemoteInvocation.invoke method i could see it is passing…
1
vote
1 answer

java.lang.NoClassDefFoundError: org/omg/CORBA/COMM_FAILURE on client while creating simple spring boor rmi app

I am creating spring boot applicating using RmiServiceExporter on server and RmiProxyFactoryBean on client.When i start server everything seems ok, i get [main] o.s.remoting.rmi.RmiServiceExporter: Binding service 'ServerServiceIF' to RMI registry:…
Blanderbuss
  • 39
  • 1
  • 6
1
vote
1 answer

Spring HTTP Invoker usage

What are the important motivations for upgrading from EJB2.0 remoting to Spring remoting using HTTPInvoker? The one that I found was that in EJB2.0, the client code has to do jndi lookups and on the server side, we need to write extra classes and…
Victor
  • 16,609
  • 71
  • 229
  • 409
1
vote
0 answers

JaxWsPortProxyFactoryBean to bypass SSL checks

I have an Spring Proxy as a client to access some WS:
user311174
  • 1,738
  • 1
  • 18
  • 17
1
vote
1 answer

Using HttpInvokerServiceExporter giving 500 error code

I am struggling for last two days to expose a service using HttpInvokerServiceExporter. The error says Did not receive successful HTTP response The complete stack trace is below for details. The code is checked in Git repo. Link is - Github link…
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
1
vote
0 answers

Bean creation exception on FactoryBean type check when creating RmiRegistryFactoryBean

I get the following exception 8 times: WARN DefaultListableBeanFactor - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'rmiRegistryFactoryBean':…
Andras Hatvani
  • 4,346
  • 4
  • 29
  • 45
1
vote
0 answers

Spring RMI-IIOP(CORBA) with spring-aop

I am trying to implement rmi-iiop using spring. I searched a lot but didn't find any latest example of it. So I started with Exposing Corba Services section in this book. Even though it is written based on older spring version, it seems to…
1
vote
0 answers

Servlet context and Session in Camel Spring remoting via JMS

I'm trying to integrate 2 spring-mvc applications using Camel-Spring-remoting via JMS/ActiveMQ component. I'm successfully able to call a remote method in App1 from App2. App1 and App2 has Shared Web Sessions (using Spring-Session/Redis) which has…
1
vote
0 answers

Spring Remoting with Camel and HTTP

REST seems to be a big work for me right now as I'm migrating an existing "Big" monolithic application into small "micro-services" and there are a lot Interface wiring inside. Based on my research, A camel based spring remoting is a great idea. I…
Firdous Amir
  • 1,297
  • 5
  • 21
  • 39
1
vote
1 answer

Property 'service' is required when migrate from Spring 2 to Spring 4

This server context used to work fine with Spring 2:
Max
  • 3,824
  • 8
  • 41
  • 62
1
vote
2 answers

Dangling ports via spring remoting in "CLOSE_WAIT"

It appears this exact problem has been asked before and answered by the author. Unfortunately the original forum is now read-only and I can no longer extend that thread or directly message the author. ( dangling-ports-via-spring-in-close-wait ) My…
mores
  • 11
  • 2