ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Error handling - how can I distinguish different error types

Post new topic  Reply to topic
 Error handling - how can I distinguish different error types « View previous topic :: View next topic » 
Author Message
fponcet
PostPosted: Fri Dec 30, 2005 9:50 am    Post subject: Error handling - how can I distinguish different error types Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

Hi,

I need to distinguish these errors in a service call:
1) The application does not answer (timeout)
2) The connector is down
3) The application answers with an error

I put a decision node but I am not able to distinguish the situations (2) and (3). I think they both return a ServiceCall exception.

It is very important because while (2) is a technical problem, (3) is a business error.

Any idea?
[/list][/list]
Back to top
View user's profile Send private message
Ratan
PostPosted: Tue Jan 03, 2006 9:46 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

If application answers with an error that should be a part of your response BO and is not a Service Call Exception.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
fponcet
PostPosted: Mon Jan 09, 2006 10:47 am    Post subject: Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

Ok, let's say that the application answers with an Error and that I have an application specific business object that contains the error.

I belive that only the application specific business error would have the error information while the generic business object would not. In that case, the map should fail (throw a MapFailureException), but how will the collaboration distinguish that exception if the connector sends it as a ServiceCallException?

On the other hand, the generic business object could contain the error information too, but would every generic business object contain that information?

Thanks for your help.
Back to top
View user's profile Send private message
Ratan
PostPosted: Mon Jan 09, 2006 1:18 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

I am not sure that I understand you. For Service call exceptions have a decision node with Exception path to handle them.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Error handling - how can I distinguish different error types
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.