Rename packages for code samples to match sections
See gh-27132
This commit is contained in:
@@ -51,7 +51,7 @@ Spring's `AmqpTemplate` and `AmqpAdmin` are auto-configured, and you can autowir
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/amqp/sending/MyBean.java[]
|
||||
include::{docs-java}/messaging/amqp/sending/MyBean.java[]
|
||||
----
|
||||
|
||||
NOTE: {spring-amqp-api}/rabbit/core/RabbitMessagingTemplate.html[`RabbitMessagingTemplate`] can be injected in a similar manner.
|
||||
@@ -88,7 +88,7 @@ The following sample component creates a listener endpoint on the `someQueue` qu
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/amqp/receiving/MyBean.java[]
|
||||
include::{docs-java}/messaging/amqp/receiving/MyBean.java[]
|
||||
----
|
||||
|
||||
TIP: See {spring-amqp-api}/rabbit/annotation/EnableRabbit.html[the Javadoc of `@EnableRabbit`] for more details.
|
||||
@@ -102,14 +102,14 @@ For instance, the following configuration class exposes another factory that use
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/amqp/receiving/custom/MyRabbitConfiguration.java[]
|
||||
include::{docs-java}/messaging/amqp/receiving/custom/MyRabbitConfiguration.java[]
|
||||
----
|
||||
|
||||
Then you can use the factory in any `@RabbitListener`-annotated method, as follows:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/amqp/receiving/custom/MyBean.java[]
|
||||
include::{docs-java}/messaging/amqp/receiving/custom/MyBean.java[]
|
||||
----
|
||||
|
||||
You can enable retries to handle situations where your listener throws an exception.
|
||||
|
||||
@@ -128,7 +128,7 @@ Spring's `JmsTemplate` is auto-configured, and you can autowire it directly into
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/jms/sending/MyBean.java[]
|
||||
include::{docs-java}/messaging/jms/sending/MyBean.java[]
|
||||
----
|
||||
|
||||
NOTE: {spring-framework-api}/jms/core/JmsMessagingTemplate.html[`JmsMessagingTemplate`] can be injected in a similar manner.
|
||||
@@ -153,7 +153,7 @@ The following component creates a listener endpoint on the `someQueue` destinati
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/jms/receiving/MyBean.java[]
|
||||
include::{docs-java}/messaging/jms/receiving/MyBean.java[]
|
||||
----
|
||||
|
||||
TIP: See {spring-framework-api}/jms/annotation/EnableJms.html[the Javadoc of `@EnableJms`] for more details.
|
||||
@@ -164,12 +164,12 @@ For instance, the following example exposes another factory that uses a specific
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/jms/receiving/custom/MyJmsConfiguration.java[]
|
||||
include::{docs-java}/messaging/jms/receiving/custom/MyJmsConfiguration.java[]
|
||||
----
|
||||
|
||||
Then you can use the factory in any `@JmsListener`-annotated method as follows:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/jms/receiving/custom/MyBean.java[]
|
||||
include::{docs-java}/messaging/jms/receiving/custom/MyBean.java[]
|
||||
----
|
||||
|
||||
@@ -27,7 +27,7 @@ Spring's `KafkaTemplate` is auto-configured, and you can autowire it directly in
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/kafka/sending/MyBean.java[]
|
||||
include::{docs-java}/messaging/kafka/sending/MyBean.java[]
|
||||
----
|
||||
|
||||
NOTE: If the property configprop:spring.kafka.producer.transaction-id-prefix[] is defined, a `KafkaTransactionManager` is automatically configured.
|
||||
@@ -44,7 +44,7 @@ The following component creates a listener endpoint on the `someTopic` topic:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/kafka/receiving/MyBean.java[]
|
||||
include::{docs-java}/messaging/kafka/receiving/MyBean.java[]
|
||||
----
|
||||
|
||||
If a `KafkaTransactionManager` bean is defined, it is automatically associated to the container factory.
|
||||
@@ -73,7 +73,7 @@ To use the factory bean, wire `StreamsBuilder` into your `@Bean` as shown in the
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/kafka/streams/MyKafkaStreamsConfiguration.java[]
|
||||
include::{docs-java}/messaging/kafka/streams/MyKafkaStreamsConfiguration.java[]
|
||||
----
|
||||
|
||||
By default, the streams managed by the `StreamBuilder` object it creates are started automatically.
|
||||
@@ -158,14 +158,14 @@ There are several ways to do that:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/kafka/embedded/property/MyTest.java[tag=*]
|
||||
include::{docs-java}/messaging/kafka/embedded/property/MyTest.java[tag=*]
|
||||
----
|
||||
|
||||
* Configure a property name on the `@EmbeddedKafka` annotation:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/messaging/kafka/embedded/annotation/MyTest.java[]
|
||||
include::{docs-java}/messaging/kafka/embedded/annotation/MyTest.java[]
|
||||
----
|
||||
|
||||
* Use a placeholder in configuration properties:
|
||||
|
||||
@@ -82,5 +82,5 @@ The following code shows a typical example:
|
||||
|
||||
[source,java,indent=0,subs="verbatim"]
|
||||
----
|
||||
include::{docs-java}/features/rsocket//requester/MyService.java[]
|
||||
include::{docs-java}/messaging/rsocket/requester/MyService.java[]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user