Skip to content

Commit

Permalink
Merge pull request #42718 from ngocnhan-tran1996
Browse files Browse the repository at this point in the history
* pr/42718:
  Fix typos and formatting errors in documentation

Closes gh-42718
  • Loading branch information
philwebb committed Oct 16, 2024
2 parents 5732782 + 6be4a07 commit 61a1c04
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In a nutshell, to add caching to an operation of your service add the relevant a
include-code::MyMathService[]

This example demonstrates the use of caching on a potentially costly operation.
Before invoking `computePiDecimal`, the abstraction looks for an entry in the `piDecimals` cache that matches the `i` argument.
Before invoking `computePiDecimal`, the abstraction looks for an entry in the `piDecimals` cache that matches the `precision` argument.
If an entry is found, the content in the cache is immediately returned to the caller, and the method is not invoked.
Otherwise, the method is invoked, and the cache is updated before returning the value.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ Spring Boot tries to auto-configure JMS by looking for a `ConnectionFactory` at
When using JTA, the primary JMS `ConnectionFactory` bean is XA-aware and participates in distributed transactions.
You can inject into your bean without needing to use any `@Qualifier`:

include-code::primary/MyBean[tag=*]
include-code::primary/MyBean[]

In some situations, you might want to process certain JMS messages by using a non-XA `ConnectionFactory`.
For example, your JMS processing logic might take longer than the XA timeout.

If you want to use a non-XA `ConnectionFactory`, you can the `nonXaJmsConnectionFactory` bean:

include-code::nonxa/MyBean[tag=*]
include-code::nonxa/MyBean[]

For consistency, the `jmsConnectionFactory` bean is also provided by using the bean alias `xaJmsConnectionFactory`:

include-code::xa/MyBean[tag=*]
include-code::xa/MyBean[]



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The following sample component creates a listener endpoint on the `someQueue` qu

include-code::MyBean[]

TIP: See javadoc:{url-spring-amqp-javadoc}/org.springframework.amqp.rabbit.annotation.EnableRabbit.html[format=annotation] for more details.
TIP: See javadoc:{url-spring-amqp-javadoc}/org.springframework.amqp.rabbit.annotation.EnableRabbit[format=annotation] for more details.

If you need to create more `RabbitListenerContainerFactory` instances or if you want to override the default, Spring Boot provides a `SimpleRabbitListenerContainerFactoryConfigurer` and a `DirectRabbitListenerContainerFactoryConfigurer` that you can use to initialize a `SimpleRabbitListenerContainerFactory` and a `DirectRabbitListenerContainerFactory` with the same settings as the factories used by the auto-configuration.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@

public class MyBean {

// tag::code[]
public MyBean(@Qualifier("nonXaJmsConnectionFactory") ConnectionFactory connectionFactory) {
// ...
}
// end::code[]

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@

public class MyBean {

// tag::code[]
public MyBean(ConnectionFactory connectionFactory) {
// ...
}
// end::code[]

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@

public class MyBean {

// tag::code[]
public MyBean(@Qualifier("xaJmsConnectionFactory") ConnectionFactory connectionFactory) {
// ...
}
// end::code[]

}

0 comments on commit 61a1c04

Please sign in to comment.