Package org.codehaus.activemq.io.impl

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


*/
public class BDbQueueMessageStoreTest extends QueueMessageStoreTestSupport {
 
    protected PersistenceAdapter createPersistenceAdapter() throws Exception {
        Environment environment = BDbQueueMessageContainerTest.createEnvironment();
        return new BDbPersistenceAdapter(environment, new DefaultWireFormat());
    }
View Full Code Here


    /**
     * Default Constructor
     */
    public WireFormatLoader() {
        this(new DefaultWireFormat());
    }
View Full Code Here

        return new BDbPersistenceAdapter(directory);
    }


    public BDbPersistenceAdapter() {
        this(null, new DefaultWireFormat());
    }
View Full Code Here

    protected void setUp() throws Exception {   
       
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        ds.setCreateDatabase("create");
        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        persistenceAdapter.setDropTablesOnStartup(true);

        broker = new BrokerContainerImpl("localhost");
        broker.addConnector(new BrokerConnectorImpl(broker, "vm://localhost", new DefaultWireFormat()));
        broker.setPersistenceAdapter(persistenceAdapter);
        broker.start();
       
        super.setUp();
    }
View Full Code Here

       
        JdbmPersistenceAdapter persistenceAdapter = new JdbmPersistenceAdapter();
        persistenceAdapter.setDirectory(dir);
       
        broker = new BrokerContainerImpl("localhost");
        broker.addConnector(new BrokerConnectorImpl(broker, "vm://localhost", new DefaultWireFormat()));
        broker.setPersistenceAdapter(persistenceAdapter);
        broker.start();
       
        super.setUp();
    }
View Full Code Here

                chars[i] = '_';
            }
        }
        this.name = new String(chars);
        this.maxDataLength = maxDataLength;
        this.wireFormat = new DefaultWireFormat();
        this.container = new DataContainer(dir, this.name, maxBlockSize);
        //as the DataContainer is temporary, clean-up any old files
        this.container.deleteAll();
    }
View Full Code Here

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


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

     */
   
    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);
                composite.setIncrementTimeout(false);
            }
            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

     * @throws JMSException
     */
    public void start() throws JMSException {
        if (started.commit(false, true)) {
            this.timeoutExpiration = this.keepAliveTimeout * timeoutCount;
            channel = new MulticastTransportChannel(new DefaultWireFormat(), uri);
            channel.setClientID(localId);
            channel.setPacketListener(this);
            try {
                channel.setTimeToLive(getTimeToLive());
            }
View Full Code Here

    public static PersistenceAdapter createDefault(boolean cleanup) {
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        ds.setCreateDatabase("create");
    //AxionDataSource ds = new AxionDataSource("jdbc:axiondb:testdb");
        JDBCPersistenceAdapter rc = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        rc.setDropTablesOnStartup(cleanup);
        return rc;
  }
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.