How to configure nonManagedTXDataSource for Quartz in JBoss Application Server 7

Discussão em 'StackOverflow' iniciado por Stack, Dezembro 30, 2020.

  1. Stack

    Stack Membro Participativo

    I'm using JBoss Application Server [7.2], I'm using quartz scheduler. I have some questions related to quartz configurations. Below is my quartz.properties file

    org.quartz.scheduler.instanceName = CI_Scheduler
    org.quartz.scheduler.instanceId = AUTO
    org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
    org.quartz.threadPool.threadCount = 1
    org.quartz.threadPool.threadPriority = 5
    org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
    org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.MSSQLDelegate
    org.quartz.jobStore.dataSource = CI
    org.quartz.jobStore.nonManagedTXDataSource = CI_NON_MANAGED_TX
    org.quartz.jobStore.tablePrefix = QRTZ_
    org.quartz.jobStore.clusterCheckinInterval = 20000
    org.quartz.jobStore.isClustered = true
    org.quartz.dataSource.CI.jndiURL = java:jboss/datasources/CI
    org.quartz.dataSource.CI_NON_MANAGED_TX.jndiURL = java:jboss/datasources/CI


    I know for below configurations I have to set configured datasource name and its jndiURL

    org.quartz.jobStore.dataSource = CI
    org.quartz.dataSource.CI.jndiURL = java:jboss/datasources/CI


    but I cannot understand what to put in below configurations

    org.quartz.jobStore.nonManagedTXDataSource = CI_NON_MANAGED_TX
    org.quartz.dataSource.CI_NON_MANAGED_TX.jndiURL = java:jboss/datasources/CI


    below is my datasource configuration in standalone-ha.xml for CI datasource.

    <datasource jndi-name="java:jboss/datasources/CI" pool-name="CI" enabled="true" use-java-context="true" statistics-enabled="true">
    <connection-url>jdbc:sqlserver://10.10.10.10:1433;databaseName=CI</connection-url>
    <driver>SQL</driver>
    <pool>
    <min-pool-size>10</min-pool-size>
    <max-pool-size>100</max-pool-size>
    <prefill>true</prefill>
    </pool>
    <security>
    <security-domain>EncryptedPassword</security-domain>
    </security>
    </datasource>


    My question is it necessary to configured nonManagedTXDataSource? If Yes, then how to configure nonManagedTXDataSource in JBoss AS 7.2?

    Is my above configuration of these below properties are correct ? or I have to configure something else here?

    org.quartz.jobStore.nonManagedTXDataSource = CI_NON_MANAGED_TX
    org.quartz.dataSource.CI_NON_MANAGED_TX.jndiURL = java:jboss/datasources/CI

    Continue reading...

Compartilhe esta Página