Package org.apache.servicemix.executors

Examples of org.apache.servicemix.executors.Executor


        return getService() + "#" + getEndpoint();
    }

    public synchronized void start() throws Exception {
        if (bootstrapContext == null) {
            Executor executor = getServiceUnit().getComponent().getExecutor();
            WorkManager wm = new WorkManagerWrapper(executor);
            bootstrapContext = new SimpleBootstrapContext(wm);
        }
        resourceAdapter.start(bootstrapContext);
        activationSpec.setResourceAdapter(resourceAdapter);
View Full Code Here


            String name = (String) properties.get(Endpoint.NAME);
            if (name == null || name.length() == 0) {
                name = EXECUTOR_DEFAULT;
            }
            name = EXECUTOR_PREFIX + name;
            Executor executor = executorFactory.createExecutor(name);
            // Create channel
            ChannelImpl channel = new ChannelImpl(wrapper, executor, nmr);
            wrapper.setChannel(channel);
            wrappers.put(wrapper, endpoint);
            registry.register(wrapper, properties);
View Full Code Here

            String name = (String) properties.get(Endpoint.NAME);
            if (name == null || name.length() == 0) {
                name = EXECUTOR_DEFAULT;
            }
            name = EXECUTOR_PREFIX + name;
            Executor executor = executorFactory.createExecutor(name);

            // Create channel
            ChannelImpl channel = new ChannelImpl(wrapper, executor, nmr);
            channel.setShouldRunSynchronously(isChannelSyncDelivery(properties));
            wrapper.setChannel(channel);
View Full Code Here

TOP

Related Classes of org.apache.servicemix.executors.Executor

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.