Friday, 15 May 2015

ejb - How to migrate a JBoss Singleton Service from JBoss AS 6 to JBoss AS 7? -



ejb - How to migrate a JBoss Singleton Service from JBoss AS 6 to JBoss AS 7? -

we have services implemented on jboss 6 singleton services wish migrate jboss 7.

these services declared on jboss-service.xml file wich on ejb bundle in code below:

class="lang-xml prettyprint-override"><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>

well, when seek deploy on jboss 7, see huge classnotfoundexception telling class org.jboss.ha.singleton.hasingletoncontroller doesn't exists. , doesn't on jboss 7.

so here question: how can migrate newer version? class acts one?

there official example:

http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/cluster-ha-singleton/

https://github.com/jboss-jdf/jboss-as-quickstart/tree/jdf-2.1.0.final/cluster-ha-singleton

singleton ejb jboss7.x jboss6.x

No comments:

Post a Comment