Example usage for org.springframework.jca.support SimpleBootstrapContext SimpleBootstrapContext

List of usage examples for org.springframework.jca.support SimpleBootstrapContext SimpleBootstrapContext

Introduction

In this page you can find the example usage for org.springframework.jca.support SimpleBootstrapContext SimpleBootstrapContext.

Prototype

public SimpleBootstrapContext(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator) 

Source Link

Document

Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.

Usage

From source file:org.tradex.tx.GenericJCAContainer.java

public void afterPropertiesSet() throws Exception {
    bootstrapContext = new SimpleBootstrapContext(workManager, xaTerminator);
    resourceAdapter.start(bootstrapContext);
    // now lets start all of the JCAConnector instances
    if (!lazyLoad) {
        if (applicationContext == null) {
            throw new IllegalArgumentException("applicationContext should have been set by Spring");
        }//from ww w. jav a2 s . c  o m
        applicationContext.getBeansOfType(JCAConnector.class);
    }

    String version = null;
    Package aPackage = Package.getPackage("org.jencks");
    if (aPackage != null) {
        version = aPackage.getImplementationVersion();
    }

    log.info("Jencks JCA Container (http://jencks.org/) has started running version: " + version);
}