Web アプリケーションを WebSphere 6.0 で実行しており、いくつかの Quartz スケジューラ タスクもあります。hibernate.cfg.xml でそのようなルックアップを行うと:
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
私の Web アプリケーションでは正常に動作しますが、Quartz タイマーによって開始されたスレッドは、そのルックアップ文字列を使用して DB にアクセスできません。しかし、私が使用する場合
<property name="jta.UserTransaction">jta/usertransaction</property>
それなら逆です。クオーツ タイマーは動作しますが、Web アプリケーション内でルックアップを実行できません。
両方を同じ休止状態構成で動作させる方法はありますか?
EDT: これが私の Quartz.properties ファイルです。ちなみにQuartzのバージョンは1.5.2です。
org.quartz.scheduler.instanceName = TestScheduler
org.quartz.scheduler.instanceId = one
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 4
org.quartz.jobStore.misfireThreshold = 5000
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore