Package org.codehaus.activemq.io.impl

Examples of org.codehaus.activemq.io.impl.DefaultWireFormat


     */
   
    protected void initialize() throws JMSException {
        super.initialize();
        try {
            boondocksChannel = TransportChannelProvider.create(new DefaultWireFormat(), new URI(uri));
            boondocksChannel.addTransportStatusEventListener(this);
            if (boondocksChannel instanceof CompositeTransportChannel) {
                CompositeTransportChannel composite = (CompositeTransportChannel)boondocksChannel;
                composite.setMaximumRetries(maximumRetries);
                composite.setFailureSleepTime(reconnectSleepTime);
            }
            boondocksChannel.start();
            //create our own broker connector ...
            BrokerConnectorImpl connector = new BrokerConnectorImpl(getBrokerContainer(),"vm://uri",new DefaultWireFormat());
            connector.start();
            connector.addClient(boondocksChannel);
            sendBrokerInfo();
        }
        catch (URISyntaxException e) {
View Full Code Here


    forced = false;
  }
 
  public void testKeepAliveProperty() throws Exception {
    long keepAliveTimeout = 373727;
    ReliableTransportChannel ch = (ReliableTransportChannel) new ReliableTransportChannelFactory().create(new DefaultWireFormat(), new URI("vm://localhost:6144?keepAliveTimeout=" + keepAliveTimeout));
    assertEquals(ch.getKeepAliveTimeout(), keepAliveTimeout);
  }
View Full Code Here

  protected class ReliableTransportChannelMock extends ReliableTransportChannel {
    private boolean stopped = false;
    protected long lastReceiptTime = 0;

    protected ReliableTransportChannelMock() {
      super(new DefaultWireFormat());
    }
View Full Code Here

    }

    public void setWireFormat(WireFormat wireFormat) {
        //seems like a bug in attribute handling???
        if (wireFormat == null) {
            this.wireFormat = new DefaultWireFormat();
        }
        else {
            this.wireFormat = wireFormat;
        }
    }
View Full Code Here

        context.deregisterConnector(connector.getServerChannel().getUrl());
    }


    public void addConnector(String bindAddress) throws JMSException {
        addConnector(bindAddress, new DefaultWireFormat());
    }
View Full Code Here

    }

    public void start() throws JMSException {
        if (started.commit(false, true)) {
            System.out.println("Opening: "+uri);
            channel = new MulticastTransportChannel(new DefaultWireFormat(), uri);
            channel.setClientID(localId);
            channel.setPacketListener(this);
            channel.start();
        }
    }
View Full Code Here

        context.deregisterConnector(connector.getServerChannel().getUrl());
    }


    public void addConnector(String bindAddress) throws JMSException {
        addConnector(bindAddress, new DefaultWireFormat());
    }
View Full Code Here

    forced = false;
  }
 
  public void testKeepAliveProperty() throws Exception {
    long keepAliveTimeout = 373727;
    ReliableTransportChannel ch = (ReliableTransportChannel) new ReliableTransportChannelFactory().create(new DefaultWireFormat(), new URI("vm://localhost:6144?keepAliveTimeout=" + keepAliveTimeout));
    assertEquals(ch.getKeepAliveTimeout(), keepAliveTimeout);
  }
View Full Code Here

  protected class ReliableTransportChannelMock extends ReliableTransportChannel {
    private boolean stopped = false;
    protected long lastReceiptTime = 0;

    protected ReliableTransportChannelMock() {
      super(new DefaultWireFormat());
    }
View Full Code Here

public class BDbQueueMessageContainerTest extends MessageContainerTestSupport {

    private static final File DBD_DIRECTORY = new File("target/bdb");
    protected PersistenceAdapter createPersistenceAdapter() throws Exception {
        Environment environment = BDbQueueMessageContainerTest.createEnvironment();
        return new BDbPersistenceAdapter(environment, new DefaultWireFormat());
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.io.impl.DefaultWireFormat

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.