Examples of RMManager


Examples of org.apache.cxf.ws.rm.RMManager

                    rmps.getSequence().getIdentifier().setValue("UNKNOWN");
                }
            }
        }
        greeterBus.getOutInterceptors().add(new SequenceIdInterceptor());
        RMManager manager = greeterBus.getExtension(RMManager.class);
        manager.getRMAssertion().getBaseRetransmissionInterval().setMilliseconds(new BigInteger("2000"));
      
        try {
            greeter.greetMe("one");
            fail("Expected fault.");
        } catch (WebServiceException ex) {
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

    private void testOnewayMessageLoss(Executor executor) throws Exception {
        setUpJBI("org/apache/servicemix/cxfbc/ws/rm/message-loss.xml");
        init("org/apache/servicemix/cxfbc/ws/rm/message-loss.xml", false, executor);
       
        greeterBus.getOutInterceptors().add(new MessageLossSimulator());
        RMManager manager = greeterBus.getExtension(RMManager.class);
        manager.getRMAssertion().getBaseRetransmissionInterval().setMilliseconds(new BigInteger("2000"));
       
        greeter.greetMeOneWay("one");
        greeter.greetMeOneWay("two");
        greeter.greetMeOneWay("three");
        greeter.greetMeOneWay("four");
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

    private void testTwowayMessageLoss(Executor executor) throws Exception {
        setUpJBI("org/apache/servicemix/cxfbc/ws/rm/message-loss.xml");
        init("org/apache/servicemix/cxfbc/ws/rm/message-loss.xml", true, executor);
       
        greeterBus.getOutInterceptors().add(new MessageLossSimulator());
        RMManager manager = greeterBus.getExtension(RMManager.class);
        manager.getRMAssertion().getBaseRetransmissionInterval().setMilliseconds(new BigInteger("2000"));

        greeter.greetMe("one");
        greeter.greetMe("two");
        greeter.greetMe("three");
        greeter.greetMe("four");
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

            return;
        }
       
        LOG.info("Updating service model info in exchange");
       
        RMManager manager = getManager(message);
        assert manager != null;
       
        RMEndpoint rme = manager.getReliableEndpoint(message);
 
        Exchange exchange = message.getExchange();
       
        exchange.put(Endpoint.class, rme.getEndpoint());
        exchange.put(Service.class, rme.getService());
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

        ProtocolVariation protocol =
            ProtocolVariation.findVariant(consts.getWSRMNamespace(), maps.getNamespaceURI());
       
        LOG.info("Updating service model info in exchange");
       
        RMManager manager = getManager(message);
        assert manager != null;
       
        RMEndpoint rme = null;
        try {
            rme = manager.getReliableEndpoint(message);
        } catch (RMException e) {
            throw new SoapFault(new org.apache.cxf.common.i18n.Message("CANNOT_PROCESS", LOG), e,
                message.getVersion().getSender());
        }
 
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

    }

    @Override
    protected void initializeProvider(InterceptorProvider provider, Bus bus) {

        RMManager manager = bus.getExtension(RMManager.class);
        if (null != rmAssertion) {
            manager.setRMAssertion(rmAssertion);
        }
        if (null != deliveryAssurance) {
            manager.setDeliveryAssurance(deliveryAssurance);
        }
        if (null != sourcePolicy) {
            manager.setSourcePolicy(sourcePolicy);
        }
        if (null != destinationPolicy) {
            manager.setDestinationPolicy(destinationPolicy);
        }
        if (null != store) {
            manager.setStore(store);
        }
        if (null != rmNamespace) {
            manager.getConfiguration().setRMNamespace(rmNamespace);
        }
        if (null != rm10AddressingNamespace) {
            manager.getConfiguration().setRM10AddressingNamespace(rm10AddressingNamespace.getUri());
        }

        rmLogicalIn.setBus(bus);
        rmLogicalOut.setBus(bus);
        rmDelivery.setBus(bus);
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

        mf.verifyAcknowledgements(new boolean[] {false, true, true}, false);       
    }
   
    void verifyStorePopulation() {
       
        RMManager manager = bus.getExtension(RMManager.class);
        assertNotNull(manager);
       
        RMStore store = manager.getStore();
        assertNotNull(store);
       
        Client client = ClientProxy.getClient(greeter);
        String id = RMUtils.getEndpointIdentifier(client.getEndpoint());
       
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

    }
   
    void verifyRecovery() throws Exception {
       
        RMManager manager = bus.getExtension(RMManager.class);
        assertNotNull(manager);
       
        RMStore store = manager.getStore();
        assertNotNull(store);
       
        Client client = ClientProxy.getClient(greeter);
        String id = RMUtils.getEndpointIdentifier(client.getEndpoint());
       
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

    // or nor acknowledgments are delivered steadily with every response.
    @Test
    public void testTwowayNonAnonymousMaximumSequenceLength2() throws Exception {
        init("org/apache/cxf/systest/ws/rm/seqlength10.xml", true);
       
        RMManager manager = greeterBus.getExtension(RMManager.class);
        assertEquals("Unexpected maximum sequence length.", BigInteger.TEN,
            manager.getSourcePolicy().getSequenceTerminationPolicy().getMaxLength());
        manager.getSourcePolicy().getSequenceTerminationPolicy().setMaxLength(
            new BigInteger("2"));
       
        greeter.greetMe("one");
        greeter.greetMe("two");
        greeter.greetMe("three");
View Full Code Here

Examples of org.apache.cxf.ws.rm.RMManager

                    rmps.getSequence().setMessageNumber(BigInteger.ONE);
                }
            }
        }
        greeterBus.getOutInterceptors().add(new MessageNumberInterceptor());
        RMManager manager = greeterBus.getExtension(RMManager.class);
        manager.getRMAssertion().getBaseRetransmissionInterval().setMilliseconds(new BigInteger("2000"));
       
        greeter.greetMe("one");
        try {
            greeter.greetMe("two");
            fail("Expected fault.");
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.