Package ru.runa.af.service.impl.interfaces

Examples of ru.runa.af.service.impl.interfaces.ServiceHome


        }
    }

    private <T extends Service> T getService(String jndiName, Class<? extends ServiceHome> homeClass) throws Exception {
        Object homeRef = remoteContext.lookup(jndiName);
        ServiceHome home = (ServiceHome) PortableRemoteObject.narrow(homeRef, homeClass);
        Service service = (Service) home.getClass().getMethod("create", new Class[0]).invoke(home, new Object[0]);
        return (T) service;
    }
View Full Code Here


        }
    }

    private <T extends Service> T getService(String jndiName, Class<? extends ServiceHome> homeClass) throws Exception {
        Object homeRef = remoteContext.lookup(jndiName);
        ServiceHome home = (ServiceHome) PortableRemoteObject.narrow(homeRef, homeClass);
        Service service = (Service) home.getClass().getMethod("create", new Class[0]).invoke(home, new Object[0]);
        return (T) service;
    }
View Full Code Here

TOP

Related Classes of ru.runa.af.service.impl.interfaces.ServiceHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.