Examples of JMSBinding


Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBinding

    }

    public ServiceBindingProvider createServiceBindingProvider(RuntimeComponent component,
                                                               RuntimeComponentService service,
                                                               DistributedSCABinding binding) {
        JMSBinding jmsBinding = createBinding(binding);
        jmsBinding.setDestinationCreate(JMSBindingConstants.CREATE_ALWAYS);
        JMSResourceFactory jmsRF = jmsRFEP.createJMSResourceFactory(jmsBinding);
        return new JMSBindingServiceBindingProvider(component, service, binding.getSCABinding(), jmsBinding, workScheduler, extensionPoints, jmsRF);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBinding

        JMSResourceFactory jmsRF = jmsRFEP.createJMSResourceFactory(jmsBinding);
        return new JMSBindingServiceBindingProvider(component, service, binding.getSCABinding(), jmsBinding, workScheduler, extensionPoints, jmsRF);
    }

    private JMSBinding createBinding(DistributedSCABinding binding) {
        JMSBinding b = new JMSBinding();
        b.setInitialContextFactoryName("org.apache.activemq.jndi.ActiveMQInitialContextFactory");
        b.setJndiURL("vm://localhost"); // TODO: plug in jndi url from definitions.xml
       
        b.setJMSTimeToLive(9);
       
        b.setRequestMessageProcessorName(JMSBindingConstants.OBJECT_MP_CLASSNAME);
        b.setResponseMessageProcessorName(JMSBindingConstants.OBJECT_MP_CLASSNAME);
        if (binding.getSCABinding().getURI().startsWith("/")) {
            b.setDestinationName(binding.getSCABinding().getURI().substring(1));
        } else {
            b.setDestinationName(binding.getSCABinding().getURI());
        }
        return b;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBinding

     * @throws Exception Failed
     */
    private void doTestJMSBinding(Operation expectedOperation, List<Operation> operations, String scaOperationName)
        throws Exception {
        // Create the test JMS Binding
        final JMSBinding jmsBinding = new JMSBinding();
        JMSResourceFactory jmsResourceFactory = null;

        // Extra information for the method we are invoking
        final String operationParams = "Hello";
        final Object operationReturnValue = "Operation Success";
View Full Code Here

Examples of org.apache.wsif.wsdl.extensions.jms.JMSBinding

        while (iterator.hasNext()) {
            javax.wsdl.extensions.ExtensibilityElement ee =
                (javax.wsdl.extensions.ExtensibilityElement) iterator.next();
            if (ee instanceof JMSBinding) {
                JMSBinding jmsBinding = (JMSBinding) ee;
                int type = jmsBinding.getJmsMessageType();
                Trc.exit(type);
                return type;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.