Package org.codehaus.activemq.message

Examples of org.codehaus.activemq.message.DefaultWireFormat


    protected BrokerContainerImpl createBroker() throws JMSException {
        BrokerContainerImpl container = new BrokerContainerImpl("DefaultBroker");

        // Start internal vm protocoll
        BrokerConnectorImpl vmConnector = new BrokerConnectorImpl(container, "vm://localhost", new DefaultWireFormat());
        BrokerConnectorImpl tcpConnector = new BrokerConnectorImpl(container, "tcp://localhost:9100", new DefaultWireFormat());

        // start activemq broker
        container.start();
        return container;
    }
View Full Code Here


        return longTermPersistence.getInitialDestinations();
    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
        return new HowlMessageStore(this, checkpointStore, transactionLog, new DefaultWireFormat());
    }
View Full Code Here

        return new BDbPersistenceAdapter(directory);
    }


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

        container.stop();
    }

    protected void setUp() throws Exception {
        container = new BrokerContainerImpl(URL);
        BrokerConnector brokerConnector = new BrokerConnectorImpl(container, URL, new DefaultWireFormat());
        container.start();

        super.setUp();
    }
View Full Code Here

*/
public class JournalQueueMessageStoreTest extends JDBCQueueMessageStoreTest {
    protected PersistenceAdapter createPersistenceAdapter() throws Exception {
        File directory = new File("target/journal");
        delete(directory);
        return new JournalPersistenceAdapter(directory, super.createPersistenceAdapter(), new DefaultWireFormat());
    }
View Full Code Here

        assertTrue("has receive channel", vmChannel.getReceiveChannel() == null);
        vmChannel.stop();
    }

    protected TransportChannel createChannel(String uri) throws JMSException, URISyntaxException {
        return TransportChannelProvider.create(new DefaultWireFormat(), new URI(uri));
    }
View Full Code Here

     * @return
     * @throws JMSException
     * @throws IOException
     */
    public static JournalPersistenceAdapter newInstance(File directory) throws IOException, JMSException {
        return new JournalPersistenceAdapter(directory, JdbmPersistenceAdapter.newInstance(directory), 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

                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

            if (args.length > 0) {
                url = args[0];
            }

            BrokerContainerImpl container = new BrokerContainerImpl(url);
            BrokerConnector brokerConnector = new BrokerConnectorImpl(container, url, new DefaultWireFormat());
            container.start();
            brokerConnector.start();

            // lets wait until we're killed.
            Object lock = new Object();
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.message.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.