【发布时间】:2014-06-30 23:20:53
【问题描述】:
我们在 JBoss AS 6 上实现了一些服务作为我们希望迁移到 JBoss AS 7 的单例服务。
这些服务在 EJB 包中的 jboss-service.xml 文件中声明,类似于以下代码:
<mbean name="some.cool.package:service=SomeService-controller" code="org.jboss.ha.singleton.HASingletonController">
<attribute name="HAPartition"><inject bean="HAPartition" /></attribute>
<attribute name="TargetName">scod:service=SomeService</attribute>
<attribute name="TargetStartMethod">startWatcher</attribute>
<attribute name="TargetStopMethod">stopWatcher</attribute>
</mbean>
好吧,当我们尝试在 JBoss 7 上部署它时,我们看到一个巨大的 ClassNotFoundException 告诉我们 org.jboss.ha.singleton.HASingletonController 类不存在。 JBoss AS 7 上确实没有。
所以这是我的问题:我们如何将其迁移到较新的版本?哪个类充当这一类?
【问题讨论】:
标签: singleton ejb jboss7.x jboss6.x