migration - jar file in Jboss for com.ibm.ws.runtime.jar -
i new jboss , working on project migrate application websphere 7 jboss eap 6.3 getting compilation error in java file implementing spring factorybean importing "com.ibm.websphere.sca.servicemanager" class of ws.runtime-7.0.0.0.jar. can tell me alternative jar can use in jboss this.
i have class implements spring frameworks factorybean interface can used in spring configuration create service objects.it delegates websphere servicemanager create service. need change class or find alternative way can create service objects using jboss servicemanager, below class used in websphere:
import org.springframework.beans.factory.beannameaware; import org.springframework.beans.factory.factorybean; import com.ibm.websphere.sca.servicemanager; public class servicefactorybean implements factorybean, beannameaware { private string beanname; private class<?> clazz; /** * default constructor. */ public servicefactorybean() { super(); } /* * (non-javadoc) * @see org.springframework.beans.factory.beannameaware#setbeanname(java.lang.string) */ public void setbeanname(string beanname) { this.beanname = beanname; } /** * sets class object service created. * * @param clazz class of service being created. */ public void setclass(class<?> clazz) { this.clazz = clazz; } /* * (non-javadoc) * @see org.springframework.beans.factory.factorybean#getobject() */ public object getobject() throws exception { return servicemanager.instance.locateservice(this.beanname); } /* * (non-javadoc) * @see org.springframework.beans.factory.factorybean#getobjecttype() */ public class getobjecttype() { return this.clazz; } /* * (non-javadoc) * @see org.springframework.beans.factory.factorybean#issingleton() */ public boolean issingleton() { return false; } }