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

Json string handling with back slash

I know this question was asked several times before on this forum. But none of it addresses my problem. I am using Jmeter to post json string with content-type "application/json" My Spring mvc app is happy consuming the same and converting it to…
sridhar kondoji
  • 103
  • 1
  • 9
1
vote
0 answers

Exporting standalone web services using JAX-WS throws Error

I am facing issues while exposing standalone web services using spring jax-ws SimpleJaxWsServiceExporter for remoting. Below is my configuration and error message while starting the application. I am using JBoss 5.1.0 as application server. Please…
Vijay
  • 61
  • 2
  • 5
1
vote
1 answer

Using HttpRequestHandlerServlet in programatically configured Jetty embedded server

I have programatically defined a Jetty server and added an instance of a HttpRequestHandlerServlet. I am trying to do all of this without a web.xml file. Here is a simplified version of my code: import java.io.IOException; import…
Steve Ardis
  • 348
  • 2
  • 8
1
vote
0 answers

HessianConnectionException: 500: java.io.EOFException

I'm developing an Android application that communicates with a Hessian web service. It works fine after starting but when i call again the network function i get this error: 08-21 14:27:24.712: E/AndroidRuntime(2170): FATAL EXCEPTION: AsyncTask…
Sidaoui Majdi
  • 399
  • 7
  • 26
1
vote
2 answers

Spring Remoting Services (via HTTPInvoker) is more lightweight than EJB 3.1 Stateless?

I have two java web-app in the same application server (JBoss 7). And one web-app makes some remote calls to the other one. Today I'm using Stateless EJB 3.1 to expose the services. Do you think that exposing the services with Spring Remoting (via…
ethanxyz_0
  • 713
  • 12
  • 37
1
vote
1 answer

spring hessian client socket connection reset

I am using spring 3.1.0, com.springsource.com.caucho-3.2.1.jar and tomcat-6.0.33 both sides (client/server). All the remote service calls are working fine without any issues except long time taking services(more then 9/10 minutes). I am using…
Satish Pandey
  • 1,184
  • 4
  • 12
  • 32
1
vote
2 answers

Spring HTTP invoker waits one second before processing next request

I have set up an spring http invoker example as described here http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/remoting.html in section 20.4 If i do several service calls in a row (see my for-loop), between the…
howlibird
  • 85
  • 1
  • 7
0
votes
2 answers

How to pass parameter to constructor when using .getClass()?

I have that line of code and it was working at that version: ... Wrapper wrapped = restTemplate.getForObject(BASE_URL, Wrapper.class, map); ... However I want to send parameter to constructor: ... Wrapper wrapped =…
kamaci
  • 72,915
  • 69
  • 228
  • 366
0
votes
1 answer

Protocol Switching, Remote call to an EJB from presentation to Business using Spring

I have been using Spring DI and IOC extensively in my earlier projects. As per a new project requirement, we have to setup our projects as follows : Business project (Java project) Common project ( Java project) Presentation project (Web…
dash27
  • 131
  • 1
  • 1
  • 6
0
votes
1 answer

Http Invoker does NOT invoke aspects that are configured at Service end

I have a properly configured http invoker setup and in a working condition. For authentication, i use AOP, which essentially adds a authentication bit into a thread local based on various criteria (like the web context, username pwd, etc.) And now,…
user898535
  • 207
  • 1
  • 2
  • 9
0
votes
0 answers

Error while calling a remote service via Spring HTTPInvoker from my Kafka consumer

Getting the "No thread-bound request found" issue when calling a remote service via Spring HTTPInvoker from my Kafka Consumer. In this case ideally there would not be a Http Request as the data comes to Consumer from another MQ System. Anyway I…
0
votes
2 answers

Occurrence of ResultEvent event in remoting a spring Object

In my attempt to learn flex remoting I came across this flexService.getRules.addEventListener(ResultEvent.RESULT, loadRules); here flexService is a remote java object .. In above function call can any one help me that when ResultEvent.RESULT will…
Anupam Gupta
  • 1,591
  • 8
  • 36
  • 60
0
votes
2 answers

Spring remoting using Https and tomcat

My application is a swing based client communicating to tomcat using spring remoting Http invoker, I want to convert to https. org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at…
vikas
  • 1
  • 1
  • 1
0
votes
1 answer

Camel Spring remoting with Artemis Proton/Qpid client - hangs sending message

When i use the Camel spring remoting configuration to send some message, both the producer and consumer are running in different JVM. using Apache artemis 2.14.0 version version of camel (2.20.0), qpid (0.54.0), pooled-jms (1.1.1) i was using…
Tim
  • 1,321
  • 1
  • 22
  • 47
0
votes
1 answer

How to make Spring-remoting work over Kafka?

Is there any example (somewhere) of spring-remoting working on top of (spring-) Kafka ?
user2038596
  • 535
  • 1
  • 3
  • 14