Package it.freedomotic.bus

Examples of it.freedomotic.bus.BusDestination


  }

  private synchronized BusDestination register(CreateDestinationAction command)
      throws JMSException {

    BusDestination destination;
    if (!consumer.containsKey(command.getQueueName())) {

      destination = command.create();
      consumer.put(command.getQueueName(), destination);
View Full Code Here


        final Session receiveSession = busService.getReceiveSession();

        Destination destination = receiveSession
            .createQueue(getQueueName());

        BusDestination busDestination = new BusDestination(destination,
            getQueueName(), DestinationType.QUEUE);

        return busDestination;
      }
    };
View Full Code Here

        final Session sendSession = busService.getSendSession();

        Destination destination = sendSession
            .createTopic("VirtualTopic." + getQueueName());

        BusDestination busDestination = new BusDestination(destination,
            getQueueName(), DestinationType.TOPIC);

        return busDestination;

      }
View Full Code Here

        msg.setObject(ev);

        // a consumer consumes on
        // Consumer.A_PROGRESSIVE_INTEGER_ID.VirtualTopic.
        BusDestination busDestination = this.registerTopic(to);
        Destination tmpTopic = busDestination.getDestination();

        final MessageProducer messageProducer = this.getMessageProducer();
        messageProducer.send(tmpTopic, msg);

        Profiler.incrementSentEvents();
View Full Code Here

TOP

Related Classes of it.freedomotic.bus.BusDestination

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.