Spring WorkManagerTaskExecutor无法在Websphere中初始化 [英] Spring WorkManagerTaskExecutor cannot initialize in websphere
问题描述
我想使用Websphere工作管理器在jee上下文中执行异步作业,但是我在创建spring WorkManager时遇到问题.
i want use Websphere work manager for executing async jobs in jee context but i have problem with creating spring WorkManager.
bean定义:
<bean id="taskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor"> <property name="workManagerName" value="wm/default" /> </bean>
我在Websphere帮助中找到了这个定义.但是问题是这以noClassDefFound结尾.我注意到从2.x.x
this definition i found in websphere help. But problem is this ends with noClassDefFound. I noticed pckg org.springframework.scheduling.commonj
is missing from spring-context since version 2.x.x
是否已将其替换为org.springframework.jca.work.WorkManagerTaskExecutor
?
当我使用其他春季课程时,出现错误:
when i use this other spring class, i get error:
由以下原因引起:org.springframework.jndi.TypeMismatchNamingException: 类型[类com.ibm.ws.asynchbeans.WorkManagerImpl]的对象 在JNDI位置可用[wm/default]不可分配给 [javax.resource.spi.work.WorkManager]
Caused by: org.springframework.jndi.TypeMismatchNamingException: Object of type [class com.ibm.ws.asynchbeans.WorkManagerImpl] available at JNDI location [wm/default] is not assignable to [javax.resource.spi.work.WorkManager]
那这里怎么办?
是-7.0.0.23 春天-3.1.2
was - 7.0.0.23 spring - 3.1.2
推荐答案
类org.springframework.scheduling.commonj.WorkManagerTaskExecutor
驻留在spring-context-support-3.1.2.RELEASE.jar
这篇关于Spring WorkManagerTaskExecutor无法在Websphere中初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!