Questions tagged [httpinvoker]

HttpInvoker is a Spring-specific remoting option that essentially enables RPC over HTTP.

HttpInvoker is a Spring-specific remoting option that essentially enables Remote Procedure Calls (RPC) over HTTP. In order to accomplish this, an outbound representation of a method invocation is serialized using standard Java serialization and then passed within an HTTP POST request. After being invoked on the target system, the method's return value is then serialized and written to the HTTP response. There are two main requirements.

First, you must be using Spring on both sides since the marshalling to and from HTTP requests and responses is handled by the client-side invoker and server-side exporter.

Second, the Objects that you are passing must implement Serializable and be available on both the client and server.

32 questions
11
votes
5 answers

Is it possible to remotely expose a bean in spring boot using REST and httpInvoker

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…
Marged
  • 9,123
  • 9
  • 45
  • 87
5
votes
1 answer

Solve the error java.io.StreamCorruptedException: Inconsistent vector internals

I have a Spring webapp that uses HttpInvoker to connect to a Spring Boot service. I have recently updated the service project to use Java 11 and at the same time updated it to Spring Boot starter 2.1.3.RELEASE. The service project provides an…
Ben
  • 183
  • 1
  • 4
  • 18
3
votes
1 answer

Spring HTTP Invoker session (state) storage

i have a Swing-client and a Server running on tomcat 7, which communicate with each other using Spring (3.1) HTTP invoker. The communication works fine so far (even with TSL), but now i am trying to add Spring Security. side-note: In a typical…
Mario B
  • 1,737
  • 2
  • 20
  • 37
3
votes
2 answers

Spring HTTP invoker with https and unsigned certificate

We've been using Springs HttpInvoker for a few weeks now and it works like a charm. From my front end (web)application I connect to the backend's userService like this:
Stijn Geukens
  • 14,803
  • 7
  • 60
  • 100
3
votes
1 answer

Auditing HttpInvoker invactions

The server, a stand-alone SE application running Spring 2.5.6 and an embedded jetty. Clients, Swing application, connects to the server using HttpInvoker. There are a lot of services exposed by the server and now, new requirements have emerged…
user971483
  • 33
  • 3
2
votes
0 answers

What's the alternative for Spring RMI? (since it's deprecated)

Spring seems to be deprecating it's rmi: As of Spring Framework 5.3, support for several remoting technologies is now deprecated for security reasons and broader industry support. Supporting infrastructure will be removed from Spring Framework for…
Arturas M
  • 3,660
  • 18
  • 44
  • 71
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
  • 17
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

how to exclude httpinvoker package from spring-framework/spring-web/src/main/java/org/springframework/remoting/httpinvoker/ at runtime in jboss

How to exclude httpinvoker package spring-web at runtime in jboss server ? In the sonatype scan found the one issue about the httpinvoker package, instead of httpinvoker we created new code to make call. so we need to exclude the same package from…
Tusar
  • 11
  • 1
1
vote
1 answer

Spring Test's MockMvc and Spring Remoting's HttpInvoker

I've got web application which is split into two parts (being run in different jvms): @RestController layer; @Service layer (business and data access logic). They communicate with each other via Spring…
1
vote
1 answer

How to setup Http invoker?

I'm trying to create 2 projects, one is Client site, and one is Server site. My projects is about Client call a method with param is a UserDTO. And Server site will change userName of that UserDTO. This is file web.xml in Server site:
Hưng Híp
  • 409
  • 1
  • 4
  • 15
1
vote
0 answers

conflict between websocket and httpinvoker

we've a spring app with httpinvoker services. We've added websocket and now, our httpinvoker services becomes unavailable. Do you know where it can comes from ? Answer : the problem was not Websocket but a problem of configuration of two different…
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
4 answers

HttpClient timeout

I have a client server app using spring HttpInvokers. I am struggling with the timeouts. I see other threads regarding this but no clear answers. As far as I know the readTimeout is supposed to control the length of a transaction after it has…
springcorn
  • 509
  • 2
  • 12
  • 24
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
  • 7
1
2 3