Package org.jboss.soa.esb.couriers

Examples of org.jboss.soa.esb.couriers.CourierException


  catch (URISyntaxException ex)
  {
      throw new MalformedEPRException(ex);
  }

  throw new CourierException("Unsupported default reply to EPR "
    + toEpr.getClass().getSimpleName());
    }
View Full Code Here


                                    .toString()
                            + ((FTPEpr) destination).getPostDirectory();
                }
                catch (Exception ex)
                {
                    throw new CourierException(ex);
                }
            }
            else if (destination instanceof FileEpr)
            {
                try
                {
                    type = Environment.Transports.File;

                    name = destination.getURI()
                            + File.separator
                            + msg.getHeader().getCall().getMessageID()
                                    .toString()
                            + ((FileEpr) destination).getInputSuffix();
                }
                catch (Exception ex)
                {
                    throw new CourierException(ex);
                }
            }
            else if (destination instanceof JMSEpr)
            {
                type = Environment.Transports.JMS;
View Full Code Here

                        // OK, just leave it null
                }
                catch (final Throwable th)
                {
                    CourierUtil.cleanCourier(pickUpCourier);
                    throw new CourierException("Problems invoking setPollLatency(long)", th);
                }
               
                if (!transactional)
                {
                    _pickUpCourier = pickUpCourier ;
View Full Code Here

      URI   uri  = null;
      try  { uri = new URI(UUID.randomUUID().toString()); }
      catch (URISyntaxException e)
      {
        _logger.fatal("Failed to create URI: "+e);       
        throw new CourierException(e);
      }
      call.setMessageID(uri);
    }
   
    Courier sender = CourierFactory.getCourier(call.getTo());
View Full Code Here

                {
                    listener.stop() ;
                }
                catch (final ManagedLifecycleException mle)
                {
                    throw new CourierException("Unexpected lifecycle exception", mle) ;
                }
                synchronized(this)
                {
                    triggered = true ;
                    notify() ;
View Full Code Here

        }

        if(returnValueForCourier) {
            MockCourierFactory.courierException = null;
        } else {
            MockCourierFactory.courierException = new CourierException("Test generated mock exception.");
        }

        return mock;
   
  }
View Full Code Here

        mock.start();

        if(returnValueForCourier) {
            MockCourierFactory.courierException = null;
        } else {
            MockCourierFactory.courierException = new CourierException("Test generated mock exception.");
        }

        return mock;
  }
View Full Code Here

        epr1 = new EPR(new URI("1"));
        epr2 = new EPR(new URI("2"));
        epr3 = new EPR(new URI("3"));
        epr4 = new EPR(new URI("4"));
        courier1 = new MockCourier(false);
        courier2 = new MockCourier(new CourierException(""));
        courier3 = new MockCourier(new MalformedEPRException(""));
        courier4 = new MockCourier(true);

        MockRegistry.register("cat", "service", epr1, courier1);
        MockRegistry.register("cat", "service", epr2, courier2);
View Full Code Here

        MockCourierFactory.uninstall();
    }
    @Test
    public void test_getCourier_CourierException() throws MessageDeliverException {
        // Get the courier factory to throw a CourierException
        MockCourierFactory.courierException = new CourierException("");
        try {
          log.warn( "The following warings are intentional" );
            deliveryAdapter.deliverAsync(payload);
            fail("Expected MessageDeliverException");
        } catch(MessageDeliverException e) {
View Full Code Here

   * @throws CourierException -
   *             if problems were encountered
   */
  public boolean deliver(Message message) throws CourierException, MalformedEPRException {
    if (m_isReceiver)
      throw new CourierException("This is a read-only Courier");

    if (null == message)
      return false;

    /*
 
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.couriers.CourierException

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.