Package net.sf.xbus.base.xbussystem

Examples of net.sf.xbus.base.xbussystem.XBUSSystem


          .getFileName());

      boolean successful = true;
      for (Iterator it = systems.iterator(); it.hasNext();)
      {
        XBUSSystem xbusSystem = (XBUSSystem) it.next();
        Trace.info("Start processing " + xbusSystem.getCompleteName());
        if (!doReceive(xbusSystem))
        {
          successful = false;
        }
      }

      if (successful)
      {
        PostProcessor.start(new XBUSSystem(systemName), null,
            Constants.POSTPROCESSING_FINAL);
      }
    }
    catch (Throwable e)
    {
      try
      {
        NotifyError.notifyError(this, new XBUSSystem(systemName), e
            .getMessage(), null, null);
      }
      catch (XException e1)
      {
        // do nothing
View Full Code Here


      // Use the static MQConnection.newInstance() method to instantiate a
      // new
      // connection for messagequeues and creates a JMS-QueueBrowser for
      // the given queue.
      MQConnection mqCon = MQConnection.getInstance();
      QueueBrowser qb = mqCon.getBrowser(new XBUSSystem(logQueuename));

      TextMessage message = null;

      Enumeration e = qb.getEnumeration();
View Full Code Here

      // Use the static MQConnection.newInstance() method to instantiate a
      // new connection
      // for messagequeues and creates a JMS QueueSender for the given
      // queue.
      MQConnection mqCon = MQConnection.getInstance();
      QueueSender qs = mqCon.getSender(new XBUSSystem(logQueuename));

      // Create a JMS-TextMessage for each element of the vector and send
      // this message to the queue.
      // Use the QueueSender's default delivery mode, timeToLive and
      // priority.
View Full Code Here

      } // else (destination != null)

      for (int i = 0; i < postProcessors.size(); i++)
      {
        destination = (String) ((Object[]) postProcessors.get(i))[0];
        PostProcessor postProc = new PostProcessor(new XBUSSystem(
            destination, source.getAddresses(), config
                .getValueAsBooleanOptional("System",
                    destination, "Broadcast")), callData);
        if (((Boolean) ((Object[]) postProcessors.get(i))[1])
            .booleanValue())
View Full Code Here

      // Use the static MQConnection.newInstance() method to instantiate a
      // new
      // connection for messagequeues and creates a JMS-QueueBrowser for
      // the given queue.
      MQConnection mqCon = MQConnection.getInstance();
      QueueBrowser qb = mqCon.getBrowser(new XBUSSystem(logQueuename));

      TextMessage message = null;
      Date timestamp = new Date();

      Enumeration e = qb.getEnumeration();
View Full Code Here

  public void invoke(Message message) throws XException
  {
    InvokeInternalResult invokeResult = invokeInternal(message);

    Message newMessage = invokeResult.resultMessage;
    XBUSSystem lastSystem = invokeResult.lastSystem;

    MessageFactory.transformResponse2Response(lastSystem, message
        .getSource(), newMessage, message);
  }
View Full Code Here

  private void distributeInternal(Message message) throws XException
  {
    String errortext = null;

    String destString = getRouterEntry(message, "Distribute1");
    XBUSSystem destination;

    int countSystems = 1;
    boolean rollback = false;
    Message sendMessage = null;

    while ((destString != null) && (!rollback))
    {
      sendMessage = null;
      Configuration config = Configuration.getInstance();
      destination = new XBUSSystem(destString, message.getSource()
          .getAddresses(), config.getValueAsBooleanOptional("System",
          destString, "Broadcast"));
      // The last parameter instructs the sender to try a broadcast for
      // all configured addtional addresses. This will only be active if
      // the destination address really contains a reference to the
View Full Code Here

    Message sendMessage = message;
    Message sendMessageNew = null;

    while ((destString != null) && (!rollback))
    {
      result.lastSystem = new XBUSSystem(destString, message.getSource()
          .getAddresses());
      try
      {
        if (countSystems == 1)
        {
View Full Code Here

      // Use the static MQConnection.newInstance() method to instantiate a
      // new connection
      // for messagequeues and creates a JMS QueueReceiver for the given
      // queue.
      MQConnection mqCon = MQConnection.getInstance();
      QueueReceiver qr = mqCon.getReceiver(new XBUSSystem(logQueuename));

      int commitCounter = 0;
      int messageCounter = 0;

      // Use a TextMessage object to receive a message containing a
View Full Code Here

          Constants.PACKAGE_PROTOCOL_PROTOCOL, "7", params);
    }

    Message destinationMessage = createMessage(sourceMessage, destination);

    XBUSSystem source = sourceMessage.getSource();

    String receiverType = Configuration.getInstance().getValueOptional(
        "TransformInput", source.getName(), destination.getName());

    if (receiverType == null)
    {
      if (sourceMessage instanceof XMLMessage)
      {
View Full Code Here

TOP

Related Classes of net.sf.xbus.base.xbussystem.XBUSSystem

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.