Package org.apache.servicemix.id

Examples of org.apache.servicemix.id.IdGenerator


        super.setUp();
        aggregator = new MockAggregator();
        aggregator.setTimerManager(new TimerManagerImpl());
        aggregator.getTimerManager().start();
        aggregator.setLockManager(new SimpleLockManager());
        aggregator.setStore(new MemoryStore(new IdGenerator()));
        aggregator.start();
        factory = new MockExchangeFactory();
    }
View Full Code Here


        return jbiEndpoint;
    }

    protected String createEndpointName() {
        if (idGenerator == null) {
            idGenerator = new IdGenerator("camel");
        }
        return idGenerator.generateSanitizedId();
    }
View Full Code Here

    public void resendExchange(MessageExchange exchange) throws JBIException {
        if (!(exchange instanceof MessageExchangeImpl)) {
            throw new IllegalArgumentException("exchange should be a MessageExchangeImpl");
        }
        MessageExchangeImpl me = (MessageExchangeImpl) exchange;
        me.getPacket().setExchangeId(new IdGenerator().generateId());
        me.getPacket().setOut(null);
        me.getPacket().setFault(null);
        me.getPacket().setError(null);
        me.getPacket().setStatus(ExchangeStatus.ACTIVE);
        me.getPacket().setProperty(JbiConstants.DATESTAMP_PROPERTY_NAME, Calendar.getInstance());
View Full Code Here

    public void resendExchange(MessageExchange exchange) throws JBIException {
        if (!(exchange instanceof MessageExchangeImpl)) {
            throw new IllegalArgumentException("exchange should be a MessageExchangeImpl");
        }
        MessageExchangeImpl me = (MessageExchangeImpl) exchange;
        me.getPacket().setExchangeId(new IdGenerator().generateId());
        me.getPacket().setOut(null);
        me.getPacket().setFault(null);
        me.getPacket().setError(null);
        me.getPacket().setStatus(ExchangeStatus.ACTIVE);
        me.getPacket().setProperty(JbiConstants.DATESTAMP_PROPERTY_NAME, Calendar.getInstance());
View Full Code Here

        super.setUp();
        aggregator = new MockAggregator();
        aggregator.setTimerManager(new TimerManagerImpl());
        aggregator.getTimerManager().start();
        aggregator.setLockManager(new SimpleLockManager());
        aggregator.setStore(new MemoryStore(new IdGenerator()));
        factory = new MockExchangeFactory();
    }
View Full Code Here

    public void resendExchange(MessageExchange exchange) throws JBIException {
        if (!(exchange instanceof MessageExchangeImpl)) {
            throw new IllegalArgumentException("exchange should be a MessageExchangeImpl");
        }
        MessageExchangeImpl me = (MessageExchangeImpl) exchange;
        me.getPacket().setExchangeId(new IdGenerator().generateId());
        me.getPacket().setOut(null);
        me.getPacket().setFault(null);
        me.getPacket().setError(null);
        me.getPacket().setStatus(ExchangeStatus.ACTIVE);
        me.getPacket().setProperty(JbiConstants.DATESTAMP_PROPERTY_NAME, Calendar.getInstance());
View Full Code Here

    public void resendExchange(MessageExchange exchange) throws JBIException {
        if (!(exchange instanceof MessageExchangeImpl)) {
            throw new IllegalArgumentException("exchange should be a MessageExchangeImpl");
        }
        MessageExchangeImpl me = (MessageExchangeImpl) exchange;
        me.getPacket().setExchangeId(new IdGenerator().generateId());
        me.getPacket().setOut(null);
        me.getPacket().setFault(null);
        me.getPacket().setError(null);
        me.getPacket().setStatus(ExchangeStatus.ACTIVE);
        me.getPacket().setProperty(JbiConstants.DATESTAMP_PROPERTY_NAME, Calendar.getInstance());
View Full Code Here

     */
    public RemoteServiceMixClient(String uri, ActivationSpec activationSpec) {
        container = new JBIContainer();
        container.setEmbedded(true);
        container.setUseMBeanServer(false);
        container.setName(new IdGenerator().generateSanitizedId());
        this.uri = uri;
        this.activationSpec = activationSpec;

    }
View Full Code Here

public class ActiveMQUUIDService implements UUIDService {

    private IdGenerator idGenerator;
   
    public ActiveMQUUIDService() {
        idGenerator = new IdGenerator();
    }
View Full Code Here

     */
    public RemoteServiceMixClient(String uri, ActivationSpec activationSpec){
        container = new JBIContainer();
        container.setEmbedded(true);
        container.setUseMBeanServer(false);
        container.setName(new IdGenerator().generateSanitizedId());
        this.uri = uri;
        this.activationSpec = activationSpec;

    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.id.IdGenerator

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.