cancel
Showing results for 
Search instead for 
Did you mean: 

Raising exceptions in database lookups in message mapping

Former Member
0 Kudos

Hi

We have been able to successfully do a database lookup from within a message mapping - thanks to weblogs already existing out there. However, we have requirement that states that - if the lookup fails ( failure to connect to DB / data retrieved is null ) , then the mapping should fail - and an exception raised.

How can we go about doing this from within the java code - of the mapping lookup ?

Any correct pointers /solutions to achieve this will be rewarded rightaway. Thanks in advance for your time.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can use Alessandro's way:

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

this way you can throw smart exceptions:)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Michal

Thanks a lot for the quick response - full points awarded.....

Karthik.M

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

hope this solution will help you

Regards,

michal

Answers (0)