Package org.kie.services.client.api.builder

Examples of org.kie.services.client.api.builder.RemoteJmsRuntimeEngineFactoryBuilder


    private RemoteRuntimeEngineFactory buildRemoteRuntimeEngineFactory() {
        RemoteRuntimeEngineFactory factory = null;
        ClassLoader loader = getLoader();
        RemoteModel remoteModel = getModel().getManifest().getRemote();
        if (remoteModel instanceof RemoteJmsModel) {
            RemoteJmsRuntimeEngineFactoryBuilder builder = RemoteJmsRuntimeEngineFactory.newBuilder();
            InitialContext ctx = configRemoteJms(builder, (RemoteJmsModel)remoteModel, loader);
            try {
                factory = builder.build();
            } finally {
                if (ctx != null) {
                    try {
                        ctx.close();
                    } catch (Exception e) {
                        e.getMessage(); // ignore but keep checkstyle happy
                    }
                }
            }
        } else if (remoteModel instanceof RemoteRestModel) {
            RemoteRestRuntimeEngineFactoryBuilder builder = RemoteRestRuntimeEngineFactory.newBuilder();
            configRemoteRest(builder, (RemoteRestModel)remoteModel, loader);
            factory = builder.build();
        }
        return factory;
    }
View Full Code Here

TOP

Related Classes of org.kie.services.client.api.builder.RemoteJmsRuntimeEngineFactoryBuilder

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.