File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Sending Custom Response back to the client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Sending Custom Response back to the client" Watch "Sending Custom Response back to the client" New topic
Author

Sending Custom Response back to the client

Kishor Pawar
Greenhorn

Joined: Jul 30, 2012
Posts: 1
Hi,


I am working on Jboss SOA Platform 5.1. I have 5 ESB services running on my Jboss, of which one is used for handling the Execptions(FaultHandlerService) in the ESB.

I have one CXF service which acts as controller for all the 4 ESB services. CXF service does content based routing based on the input request.
I have used ServiceInvoker to call the ESB services.

ServiceInvoker si = new ServiceInvoker(esbServiceCategory,esbServiceName);
Message respEsbMessage = si.deliverSync(esbMessage, 10000L);


If any exception occurs in any of the ESB services, then that exception is given to the FaultHandlerService. This happen because i have set FaultTo inside the CXF service.

LogicalEPR defaultFaultToEpr = new LogicalEPR("Fault-Handler-Service-Category","FaultHandlerService");
esbMessage.getHeader().getCall().setFaultTo(defaultFaultToEpr);



When the exception comes to the FaultHandler Servcie, how can i send it back to the CXF service? This is the jboss-esb.xml for the FaulthandlerService.
please let me know if any information is required.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending Custom Response back to the client
 
Similar Threads
Missing CXF plugins??
jbossesb performance
How to change jetty binding port number in maven.
Jboss - can we route to actions
WSSecurity, MTOM and TIBCO 5.6