Atomikos Forum

Tomcat does not shutdown

As per the setup here: http://www.atomikos.com/Documentation/TomcatSpringActiveMQMySQLJMXIntegration

Tomcat however, does not shutdown.
The AtomikosLifecycleListener is called but the Atomikos threads are still hanging around and therefore the JVM does not exit.

spring.xml:
===========

    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" lazy-init="true">
        <property name="transactionManagerName" value="java:comp/env/TransactionManager"/>
    </bean>

    <!-- Async executors -->
    <task:annotation-driven executor="defaultExecutor"/>
    <task:executor id="defaultExecutor" pool-size="10"/>

    <!-- JTA config - Atomikos -->
    <bean id="exceptionTranslator" class="org.springframework.orm.hibernate4.HibernateExceptionTranslator"/>

    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" p:persistenceUnitName="EnginePU">
        <property name="jpaVendorAdapter">
            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"/>
        </property>
        <property name="jpaProperties">
            <props>
                <prop key="hibernate.transaction.manager_lookup_class">
                    com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup
                </prop>
            </props>
        </property>
    </bean>

    <jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/xxxDS" expected-type="javax.sql.DataSource"/>

How can I force Tomcat to shutdown cleanly?

TIA
Donovan Muller Send private email
Wednesday, July 24, 2013
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics