Skip to main content

developerWorks >  WebSphere  >  Forums  >  WebSphere Enterprise Service Bus  >  developerWorks

Not going to the response flow    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 4 - Pages: 1 - Last Post: Nov 5, 2009 11:22 PM Last Post By: vam Threads: [ Previous | Next ]
vam

Posts: 5
Registered: Apr 19, 2007 01:23:00 PM
Not going to the response flow
Posted: Oct 29, 2009 06:04:22 PM
Click to report abuse...   Click to reply to this thread Reply
I am fairly new to websphere ESB. I have a JMS export and an outbound JDBC adapter. I have request and response mediation flows. The request from export to the adapter works fine but I have code that need to be executed on response and so i have a response flow. But my code never goes to the response mediation flow. Is there some setting on properties that need to be enabled to execute the mediation flow? I have tried to poke but could not find anything? please advise.
dave_screen

Posts: 19
Registered: Apr 16, 2009 12:04:57 PM
Re: Not going to the response flow
Posted: Oct 30, 2009 09:39:35 AM   in response to: vam in response to: vam's post
Click to report abuse...   Click to reply to this thread Reply
Hello

The first thing I would check is that the interface for the JDBC outbound call is 2 way (has a request and response/ an input and an output). If it is a one-way interface then there will not be a response flow.

I presume it is a 2-way because you state that you have a response mediation flow and presumably an "input response node" on the left of the mediation flow editor that represents the return from the adapter. So the primitives wired to the input response node are not being executed, and no response message sent via JMS ?

Are there any errors in the logs (SystemOut/Err.log) ?
The database is updated successfully ?

Regards, Dave
vam

Posts: 5
Registered: Apr 19, 2007 01:23:00 PM
Re: Not going to the response flow
Posted: Oct 30, 2009 04:42:49 PM   in response to: dave_screen in response to: dave_screen's post
Click to report abuse...   Click to reply to this thread Reply
Attachment mediation flow.doc (180.5 KB)
I did some testing with my interface and I found out that when JDBC Adapter throws an exception( SQL exception of unique constraint, in my case) it does not go to the response flow. In the case of a successful operation, it does go to the response flow. But my main aim was to capture the exception and route it a different way. Like capturing the error and if it was a unique constraint error, I would send it as a update request. I have the screen shots of the mediation flow are in the attached document.
dave_screen

Posts: 19
Registered: Apr 16, 2009 12:04:57 PM
Re: Not going to the response flow
Posted: Nov 02, 2009 01:08:14 PM   in response to: vam in response to: vam's post
Click to report abuse...   Click to reply to this thread Reply
Hi

I would certainly expect at least one of the out/fail terminals of the input_response node to fire.

What versions of the runtime and adapters are you using?

Perhaps run with this trace on "*=info:com.ibm.ws.sibx.*=fine:com.ibm.j2ca.*=all" (go to Troubleshooting > Logs and Trace -> server1->Change Log Detail Levels), save config, restart and then attach the trace.log showing the behaviour to this thread.

By the way, the 6.2 JDBC adapter supports exists operation -using this to check for uniqueness is a better practice if the intention is to do an update if the record already exists.

Regards,Dave
vam

Posts: 5
Registered: Apr 19, 2007 01:23:00 PM
Re: Not going to the response flow
Posted: Nov 05, 2009 11:22:58 PM   in response to: dave_screen in response to: dave_screen's post
Click to report abuse...   Click to reply to this thread Reply
Thanks Dave for your prompt reply.

JDBC Adapter Version is 6.0.0.2IF8

Websphere Integration Developer 6.0.2

I will try the trace log option and I will update you on that in my next post
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums