Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Error Handling Strategy in an SOA

Error Handling Strategy in an SOA

2004-01-21       - By Vilayanur P. Krishnan

 Back
Reply:     1     2  

Hi,

I am looking for best practices, patterns for handling errors (business
and system) in a service-oriented architecture. The requirements I'm
trying to address here are as follows:


*       Participating services shall throw a service exception
encapsulating the business / system error.
*       Consumers could be UI-based that need to comply with I18N as
well as batch-oriented systems (could be COTS-based systems e.g. based
on SAP).

Here are some of my questions:


*       Should the services return error codes that then gets resolved
into a message and possibly even internationalized by the consumer
service? Each consumer would need to be aware of all possible error
codes, messages and any associated parameters from the services.
*       Should the responsibility for the management of error codes and
their translation be handled by a totally different service (some sort
of an Error Director) that is also I18N-aware? Overkill?
*       Should each service in the SOA be responsible for I18N - in
other words upon error, the Service would return a fully I18N message
back to the consumer. This would require the Consumer to let the Service
know of its language preferences, though.

Any pointers to best practices / patterns would be much appreciated.

Thanks
vp

====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=843385016-21012004>I am looking for
best practices, patterns for handling errors (business and system) in a
service-oriented architecture. The&nbsp;requirements I'm trying to address here
are as follows: </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004></SPAN></FONT>&nbsp;</DIV>
<UL>
 <LI><SPAN class=843385016-21012004><FONT face=Arial><FONT size=2><SPAN
 class=325432019-21012004>Participating s</SPAN>ervices<SPAN
 class=325432019-21012004> shall </SPAN>throw a service exception
encapsulating
 the business / system error. </FONT></FONT></SPAN></LI>
 <LI><SPAN class=843385016-21012004><FONT><FONT face=Arial><FONT size=2><SPAN
 class=325432019-21012004>C</SPAN>onsumers could be UI-based that need to
 comply with I18N as well as batch-oriented systems (could be COTS-based
 systems e.g. based on SAP). </FONT></FONT></FONT></SPAN></LI></UL>
<DIV><SPAN class=843385016-21012004><FONT><FONT face=Arial size=2><SPAN
class=325432019-21012004>Here are some of my
questions:</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=843385016-21012004><FONT><FONT face=Arial size=2><SPAN
class=325432019-21012004></SPAN></FONT></FONT></SPAN>&nbsp;</DIV>
<UL>
 <LI><SPAN class=843385016-21012004><FONT><FONT face=Arial size=2><SPAN
 class=325432019-21012004>Should the services return error codes that then
gets
 resolved into a message and possibly even internationalized by the consumer
 service? Each consumer would need to be aware of all possible error codes,
 messages and any associated parameters from the
 services.</SPAN></FONT></FONT></SPAN></LI>
 <LI><SPAN class=843385016-21012004><FONT><FONT face=Arial size=2><SPAN
 class=325432019-21012004>Should the responsibility for the management of
error
 codes and their translation be handled by a totally different service (some
 sort of an Error Director) that is also I18N-aware?
 Overkill?</SPAN></FONT></FONT></SPAN></LI>
 <LI><SPAN class=843385016-21012004><FONT><FONT face=Arial size=2><SPAN
 class=325432019-21012004>Should each service in the SOA be responsible for
 I18N - in other words upon error, the Service would return a fully I18N
 message back to the consumer. This would require the Consumer to let the
 Service know of its language preferences,
 though.</SPAN></FONT></FONT></SPAN></LI></UL>
<DIV><FONT face=Arial size=2><SPAN class=843385016-21012004>Any
pointers&nbsp;<SPAN class=325432019-21012004>to best practices / patterns
</SPAN>would be much appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843385016-21012004>vp</SPAN></FONT></DIV></BODY></HTML>

====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.