예제 #1
0
 public RollbackExceptionListener(CountDownLatch countDown, UMOEndpointURI deadLetter)
     throws UMOException {
   this.countDown = countDown;
   UMOEndpoint ep =
       MuleEndpoint.createEndpointFromUri(deadLetter, UMOEndpoint.ENDPOINT_TYPE_SENDER);
   // lets include dispatch to the deadLetter queue in the sme tx.
   ep.setTransactionConfig(new MuleTransactionConfig());
   ep.getTransactionConfig().setAction(UMOTransactionConfig.ACTION_JOIN_IF_POSSIBLE);
   super.addEndpoint(ep);
 }
예제 #2
0
 public UMOEndpoint createEndpoint(
     String uri, String name, boolean inbound, String transformers, UMOFilter filter)
     throws UMOException {
   UMOEndpoint ep =
       MuleEndpoint.createEndpointFromUri(
           new MuleEndpointURI(uri),
           (inbound ? UMOEndpoint.ENDPOINT_TYPE_RECEIVER : UMOEndpoint.ENDPOINT_TYPE_SENDER));
   ep.setName(name);
   if (transformers != null) {
     String delim = (transformers.indexOf(",") > -1 ? "," : " ");
     ep.setTransformer(MuleObjectHelper.getTransformer(transformers, delim));
   }
   ep.setFilter(filter);
   return ep;
 }