SpringContextResourceAdapter.java | Class | JCA 1.5
javax.resource.spi.ResourceAdapter implementation
that loads a Spring
org.springframework.context.ApplicationContext ,
starting and stopping Spring-managed beans as part of the ResourceAdapter's
lifecycle.
Ideal for application contexts that do not need any HTTP entry points
but rather just consist of message endpoints and scheduled jobs etc.
Beans in such a context may use application server resources such as the
JTA transaction manager and JNDI-bound JDBC DataSources and JMS
ConnectionFactory instances, and may also register with the platform's
JMX server - all through Spring's standard transaction management and
JNDI and JMX support facilities.
If the need for scheduling asynchronous work arises, consider using
Spring's
org.springframework.jca.work.WorkManagerTaskExecutor as a standard bean definition, to be injected into application beans
through dependency injection. |