Package org.apache.tuscany.sca.binding.rmi

Examples of org.apache.tuscany.sca.binding.rmi.RMIBinding


        Assert.assertNotNull(jmsBinding);

        Service rmiService = composite.getService("RMIService");
        Assert.assertNotNull(rmiService);
        Assert.assertEquals(1, rmiService.getBindings().size());
        RMIBinding rmiBinding = rmiService.getBinding(RMIBinding.class);
        Assert.assertNotNull(rmiBinding);

// TODO: WS binding drags in entire runtime
//        Service wsService = composite.getService("WSService");
//        Assert.assertNotNull(wsService);
View Full Code Here


        this.rmiBindingFactory = rmiBindingFactory;
    }

    public RMIBinding read(XMLStreamReader reader) throws ContributionReadException {
        try {
            RMIBinding rmiBinding = rmiBindingFactory.createRMIBinding();
           
            //Read policies
            readPolicies(rmiBinding, reader);
           
            //Read host, port and service name
            rmiBinding.setRmiHostName(reader.getAttributeValue(null, RMI_HOST));
            rmiBinding.setRmiPort(reader.getAttributeValue(null, RMI_PORT));
            rmiBinding.setRmiServiceName(reader.getAttributeValue(null, RMI_SERVICE));
           
            // Skip to end element
            while (reader.hasNext()) {
                if (reader.next() == END_ELEMENT && BINDING_RMI_QNAME.equals(reader.getName())) {
                    break;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.rmi.RMIBinding

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.