0
# Spring Integration
1
2
ActiveMQ provides comprehensive Spring Framework integration including dependency injection, XML configuration, and transaction management.
3
4
## Capabilities
5
6
### Spring Connection Factories
7
8
```java { .api }
9
public class ActiveMQConnectionFactory extends org.apache.activemq.ActiveMQConnectionFactory
10
implements BeanNameAware {
11
public void setBeanName(String beanName);
12
public void setUseBeanNameAsClientIdPrefix(boolean useBeanNameAsClientIdPrefix);
13
public void afterPropertiesSet() throws Exception;
14
}
15
```
16
17
### Spring Broker Configuration
18
19
```java { .api }
20
public class BrokerFactoryBean implements FactoryBean<BrokerService>, InitializingBean,
21
DisposableBean, ApplicationContextAware {
22
public BrokerService getObject() throws Exception;
23
public void setConfig(Resource config);
24
public void setStart(boolean start);
25
public void afterPropertiesSet() throws Exception;
26
public void destroy() throws Exception;
27
}
28
```
29
30
### XBean Configuration
31
32
```java { .api }
33
public class XBeanBrokerFactory implements BrokerFactoryHandler {
34
public BrokerService createBroker(URI config) throws Exception;
35
}
36
```