2013-02-18 180 views
1

我们在JBoss AS 6个为单服务实现的一些服务,我们希望迁移到JBoss AS 7如何将JBoss Singleton服务从JBoss AS 6迁移到JBoss AS 7?

这些服务对的jboss-service.xml文件至极声明是在EJB包有点像下面的代码:

<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上。

所以,这里是我的问题:我们如何将它迁移到更新的版本?哪一个班是这个班的?

回答

2
+0

我用这个例子,它工作正常。尽管我的口味有点过分,但它确实应该更容易配置。 – Magnilex 2013-06-20 13:44:58

+0

@Magnilex是的,jboss-7在配置和管理方面确实很粗糙。什么使它成为可能,它变得更加“企业” - 已经反过来。 – Tair 2013-06-23 16:19:27