Package org.apache.tuscany.sca.binding.jms.provider

Examples of org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactory


     */
    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


                    ((JMSBindingContext)msg.getBindingContext()).closeJmsResponseSession();
                } catch (Throwable e) {
                }
                // Use the resource factory in the binding context to close the response connection,
                // to ensure we use same resource factory used to close response session.
                JMSResourceFactory rf = ((JMSBindingContext)msg.getBindingContext()).getJmsResourceFactory();
                if (rf.isConnectionClosedAfterUse())
                    rf.closeResponseConnection();
            } catch (JMSException e) {
            }
        }
    }   
View Full Code Here

    }

    /**
      */
    public WireFormatProvider createServiceWireFormatProvider(RuntimeEndpoint endpoint) {
        JMSResourceFactory jmsRF = jmsRFEP.createJMSResourceFactory((JMSBinding)endpoint.getBinding());
        return new WireFormatJMSBytesServiceProvider(registry, endpoint, jmsRF);
    }
View Full Code Here

    }

    /**
      */
    public WireFormatProvider createServiceWireFormatProvider(RuntimeEndpoint endpoint) {
        JMSResourceFactory jmsRF = jmsRFEP.createJMSResourceFactory((JMSBinding)endpoint.getBinding());
        return new WireFormatJMSTextXMLServiceProvider(registry, endpoint, jmsRF);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactory

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.