You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/messaging/pulsar.adoc
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
== Apache Pulsar Support
3
3
https://pulsar.apache.org/[Apache Pulsar] is supported by providing auto-configuration of the {spring-pulsar-docs}[Spring for Apache Pulsar] project.
4
4
5
-
Spring Boot will auto-configure and register the classic (imperative) Spring Pulsar components when `org.springframework.pulsar:spring-pulsar` is on the classpath.
5
+
Spring Boot will auto-configure and register the classic (imperative) Spring for Apache Pulsar components when `org.springframework.pulsar:spring-pulsar` is on the classpath.
6
6
It will do the same for the reactive components when `org.springframework.pulsar:spring-pulsar-reactive` is on the classpath.
7
7
8
8
There are `spring-boot-starter-pulsar` and `spring-boot-starter-pulsar-reactive` "`Starters`" for conveniently collecting the dependencies for imperative and reactive use, respectively.
@@ -26,7 +26,7 @@ If you need more control over the configuration, consider registering one or mor
26
26
27
27
[[messaging.pulsar.connecting.auth]]
28
28
==== Authentication
29
-
To connect to a Pulsar cluster that requires authentication, you need to specify which authentication plugin to use by setting the `authPluginClassName` and any parameters required by the plugin.
29
+
To connect to a Pulsar cluster that requires authentication, you need to specify which authentication plugin to use by setting the `pluginClassName` and any parameters required by the plugin.
30
30
You can set the parameters as a map of parameter names to parameter values.
31
31
The following example shows how to configure the `AuthenticationOAuth2` plugin.
32
32
@@ -52,7 +52,12 @@ For example, if you want to configure the issuer url for the `AuthenticationOAut
52
52
If you use other forms, such as `issuerurl` or `issuer-url`, the setting will not be applied to the plugin.
53
53
====
54
54
55
-
For complete details on the client and authentication see the Spring Pulsar {spring-pulsar-docs}#pulsar-client[reference documentation].
55
+
[[messaging.pulsar.connecting.ssl]]
56
+
==== SSL
57
+
By default, Pulsar clients communicate with Pulsar services in plain text.
58
+
You can follow {spring-pulsar-docs}#tls-encryption[these steps] in the Spring for Apache Pulsar reference documentation to enable TLS encryption.
59
+
60
+
For complete details on the client and authentication see the Spring for Apache Pulsar {spring-pulsar-docs}#pulsar-client[reference documentation].
56
61
57
62
58
63
@@ -67,7 +72,7 @@ Therefore, follow the previous section to configure the `PulsarClient` used by t
67
72
68
73
[[messaging.pulsar.admin]]
69
74
=== Connecting to Pulsar Administration
70
-
Spring Pulsar's `PulsarAdministration` client is also auto-configured.
75
+
Spring for Apache Pulsar's `PulsarAdministration` client is also auto-configured.
71
76
72
77
By default, the application tries to connect to a local Pulsar instance at `\http://localhost:8080`.
73
78
This can be adjusted by setting the configprop:spring.pulsar.admin.service-url[] property to a different value in the form `(http|https)://<host>:<port>`.
0 commit comments