Java Websphere 6 UserTrasaction和Quartz调度程序的JNDI问题
我的Web应用程序运行在WebSphere6.0上,还有一些Quartz调度器任务。如果我在hibernate.cfg.xml中这样查找:Java Websphere 6 UserTrasaction和Quartz调度程序的JNDI问题,java,hibernate,websphere,quartz-scheduler,websphere-6,Java,Hibernate,Websphere,Quartz Scheduler,Websphere 6,我的Web应用程序运行在WebSphere6.0上,还有一些Quartz调度器任务。如果我在hibernate.cfg.xml中这样查找: <property name="jta.UserTransaction">java:comp/UserTransaction</property> 我不知道这是否与你有关,但我最近也遇到了类似的问题。我的问题是远程和本地访问,稍微改变了我的设计,并将接口名称添加到@local和@remote注释中,这对我来说很有效。我想你错过了qu
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
我不知道这是否与你有关,但我最近也遇到了类似的问题。我的问题是远程和本地访问,稍微改变了我的设计,并将接口名称添加到@local和@remote注释中,这对我来说很有效。我想你错过了quartz.properties中的事务管理。 大概是这样的:
org.quartz.scheduler.userTransactionURL=jta/usertransaction
org.quartz.scheduler.wrapJobExecutionInUserTransaction=true
想法是告诉Quartz将作业执行包装到事务中,以及从何处获取它。您是否也可以发布您的Quartz配置,以便我们可以帮助您?Quartz.properties文件?Quartz在WAS中不建议使用调度解决方案。即使是这样,我也无能为力。它在很久以前就实施了,而且很有效。我们没有时间和金钱来进行全面的重构。我认为这没有关系,因为我的项目中没有使用EJB。
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
org.quartz.scheduler.userTransactionURL=jta/usertransaction
org.quartz.scheduler.wrapJobExecutionInUserTransaction=true