Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 868598 Details for
Bug 878082
Please implement mechanisms to compensate for partner link exceptions.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Updated exchange interceptor
BPELErrorHandler.java (text/x-java), 1.80 KB, created by
Gary Brown
on 2014-02-27 15:33:54 UTC
(
hide
)
Description:
Updated exchange interceptor
Filename:
MIME Type:
Creator:
Gary Brown
Created:
2014-02-27 15:33:54 UTC
Size:
1.80 KB
patch
obsolete
>package org.test; > >import java.util.Arrays; >import java.util.List; > >import javax.inject.Named; > >import org.switchyard.Exchange; >import org.switchyard.ExchangeInterceptor; >import org.switchyard.HandlerException; > >@Named("BPEL Error handler") >public class BPELErrorHandler implements ExchangeInterceptor { > > @Override > public void after(String target, org.switchyard.Exchange exchange) > throws HandlerException { > Object content = exchange.getMessage().getContent(); > if (content instanceof HandlerException > && !(content instanceof org.switchyard.component.bpel.BPELFault)) { > String newContents = "<integer xmlns=\"http://example.com/loan-approval/xsd/error-messages/\">-100</integer>"; > //System.out.println("Setting " + newContents); > //exchange.getMessage().setContent(newContents); > > exchange.getContext().setProperty(Exchange.ROLLBACK_ON_FAULT, false); > > try { > javax.xml.soap.SOAPFactory fact=javax.xml.soap.SOAPFactory.newInstance(); > javax.xml.soap.SOAPFault fault=fact.createFault("error", new javax.xml.namespace.QName("http://example.com/loan-approval/riskAssessment/", "loanProcessFault")); > > javax.xml.soap.Detail detail=fault.addDetail(); > > javax.xml.soap.DetailEntry entry=detail.addDetailEntry(new javax.xml.namespace.QName("http://example.com/loan-approval/xsd/error-messages/", "integer")); > entry.addTextNode("-100"); > > exchange.getMessage().setContent(fault); > > } catch (Exception e) { > e.printStackTrace(); > } > } > } > > @Override > public void before(String target, org.switchyard.Exchange exchange) > throws HandlerException { > // TODO Auto-generated method stub > > } > > @Override > public List<String> getTargets() { > return Arrays.asList(PROVIDER); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 878082
:
856564
| 868598