@@ -16,28 +16,29 @@ a number of Java EE (and related) technologies.
16
16
17
17
18
18
[[remoting]]
19
- == Remoting and Web Services with Spring
19
+ == Remoting and Web Services
20
20
21
- Spring features integration classes for remoting support with various technologies.
21
+ Spring provides support for remoting with various technologies.
22
22
The remoting support eases the development of remote-enabled services, implemented
23
- by your usual POJOs. Currently, Spring supports the following remoting technologies:
23
+ via Java interfaces and objects as input and output. Currently, Spring supports the
24
+ following remoting technologies:
24
25
25
- * * Remote Method Invocation (RMI)* : Through the use of `RmiProxyFactoryBean` and
26
+ * <<remoting-rmi, Remote Method Invocation (RMI)>> : Through the use of `RmiProxyFactoryBean` and
26
27
`RmiServiceExporter`, Spring supports both traditional RMI (with `java.rmi.Remote`
27
28
interfaces and `java.rmi.RemoteException`) and transparent remoting through RMI
28
29
invokers (with any Java interface).
29
- * *Spring's HTTP invoker* : Spring provides a special remoting strategy that allows
30
+ * <<remoting-httpinvoker>> : Spring provides a special remoting strategy that allows
30
31
for Java serialization though HTTP, supporting any Java interface (as the RMI
31
32
invoker does). The corresponding support classes are `HttpInvokerProxyFactoryBean`
32
33
and `HttpInvokerServiceExporter`.
33
- * *Hessian* : By using Spring's `HessianProxyFactoryBean` and the
34
+ * <<remoting-caucho-protocols-hessian>> : By using Spring's `HessianProxyFactoryBean` and the
34
35
`HessianServiceExporter`, you can transparently expose your services through the
35
36
lightweight binary HTTP-based protocol provided by Caucho.
36
- * *JAX-WS* : Spring provides remoting support for web services through JAX-WS.
37
- * *JMS* : Remoting via JMS as the underlying protocol is supported through the
37
+ * <<remoting-web-services>> : Spring provides remoting support for web services through JAX-WS.
38
+ * <<remoting-jms>> : Remoting via JMS as the underlying protocol is supported through the
38
39
`JmsInvokerServiceExporter` and `JmsInvokerProxyFactoryBean` classes in the
39
40
`spring-jms` module.
40
- * *AMQP* : Remoting via AMQP as the underlying protocol is supported by the
41
+ * <<remoting-amqp>> : Remoting via AMQP as the underlying protocol is supported by the
41
42
separate Spring AMQP project.
42
43
43
44
While discussing the remoting capabilities of Spring, we use the following domain
@@ -96,7 +97,7 @@ the protocol.
96
97
97
98
98
99
[[remoting-rmi]]
99
- === Exposing Services by Using RMI
100
+ === RMI
100
101
101
102
By using Spring's support for RMI, you can transparently expose your services through the
102
103
RMI infrastructure. After having this set up, you basically have a configuration similar
@@ -210,7 +211,7 @@ and you can find more information about Hessian itself at https://www.caucho.com
210
211
211
212
212
213
[[remoting-caucho-protocols-hessian]]
213
- ==== Wiring up `DispatcherServlet` for Hessian
214
+ ==== Hessian
214
215
215
216
Hessian communicates through HTTP and does so by using a custom servlet. By using Spring's
216
217
`DispatcherServlet` principles (see <<webmvc.adoc#mvc-servlet>>), we can wire up such a
@@ -368,7 +369,7 @@ at https://projects.spring.io/spring-security/.
368
369
369
370
370
371
[[remoting-httpinvoker]]
371
- === Exposing Services by Using HTTP Invokers
372
+ === Spring HTTP Invoker
372
373
373
374
As opposed to Hessian, Spring HTTP invokers are both lightweight protocols that use their own slim
374
375
serialization mechanisms and use the standard Java serialization
@@ -496,7 +497,7 @@ The following example shows how to do so:
496
497
497
498
498
499
[[remoting-web-services]]
499
- === Web Services
500
+ === Java Web Services
500
501
501
502
Spring provides full support for the standard Java web services APIs:
502
503
@@ -725,7 +726,7 @@ accordingly first. Check the JAX-WS documentation for details on those requireme
725
726
726
727
727
728
[[remoting-jms]]
728
- === Exposing Services through JMS
729
+ === JMS
729
730
730
731
You can also expose services transparently by using JMS as the underlying communication
731
732
protocol. The JMS remoting support in the Spring Framework is pretty basic. It sends
@@ -895,8 +896,9 @@ The following example defines beans that you can inject into other client-side o
895
896
896
897
[[remoting-amqp]]
897
898
=== AMQP
898
- See the {doc-spring-amqp}/html/_reference.html#remoting[Spring AMQP Reference Guide's
899
- 'Spring Remoting with AMQP' section] for more information.
899
+ Remoting via AMQP as the underlying protocol is supported in the Spring AMQP project.
900
+ For further details please visit the {doc-spring-amqp}/html/#remoting[Spring Remoting]
901
+ section of the Spring AMQP reference.
900
902
901
903
[[remoting-autodection-remote-interfaces]]
902
904
[NOTE]
@@ -978,7 +980,7 @@ major new features added going forward.
978
980
979
981
980
982
[[rest-resttemplate]]
981
- ==== Using `RestTemplate`
983
+ ==== `RestTemplate`
982
984
983
985
The `RestTemplate` provides a higher level API over HTTP client libraries. It makes it
984
986
easy to invoke REST endpoints in a single line. It exposes the following groups of
0 commit comments