spring_reference/IV. Spring Boot features/30.1.3. Using a JNDI Connec...

8 lines
388 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 30.1.3. 使用JNDI ConnectionFactory
如果你在一个应用服务器中运行你的应用Spring Boot将尝试使用JNDI定位一个JMS ConnectionFactory。默认情况会检查java:/JmsXA和java:/
XAConnectionFactory。如果需要的话你可以使用spring.jms.jndi-name属性来指定一个替代位置。
```java
spring.jms.jndi-name=java:/MyConnectionFactory
```