web stats
Questions on Channel Writer - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2007, 06:41 AM
hsingh00 hsingh00 is offline
OBX.1 Kenobi
 
Join Date: Mar 2007
Posts: 31
hsingh00
Default Questions on Channel Writer

Hey guys

I've been reading up on the Channel Writer in the forums but the information is limited. What does its exactly do? It seems that it can redirect the response of the channel to another channel by modifying the response map. I guess my question is how do I do that?

This is my setup....

1st channel
LLP listener ---> Database Writer

2nd channel
Database writer ---> Channel Writer set to None(I think it should be)

So I need to send the response of the 2nd channel to the same socket that the LLP connection in the first channel is listening to, even if its via a Custom ACK. I read post about Custom ACKs but those are done on the same Channel the listening is done.

Thanks guys
Reply With Quote
  #2  
Old 06-07-2007, 11:26 AM
hsingh00 hsingh00 is offline
OBX.1 Kenobi
 
Join Date: Mar 2007
Posts: 31
hsingh00
Default Re:Questions on Channel Writer

UPDATE:

Looks like I can use something like this. Of course I'm not getting a ACK though.

Code:
var responseVal = responseMap.get('Mirth_2_Gateway');
globalMap.put('custom_ack', ResponseFactory.getSuccessResponse('responseVal'));
I put this in a Javascript Transformer under Destinations tab. I now see "custom_ack" in the drop down menu "Response From", under the other channel I want for to send this message to go to, But I do not get a ACK. Is "var responseVal = responseMap.get('Mirth_2_Gateway') ;" the rite way to get the encoded data to pass to the globalMap?

Thanks
Reply With Quote
  #3  
Old 06-08-2007, 10:06 AM
cord73 cord73 is offline
Mirth Newb
 
Join Date: Apr 2007
Posts: 20
cord73
Default Re:Questions on Channel Writer

This is the code I use to generate a Response:

soapResponseObject=ResponseFactory.getFailureRespo nse('someFailureMessage');
responseMap.put('Soap Response',soapResponseObject);

If you look in the mappings tab in the dashboard for your destination you should see the set response - which is the one you put in the dropdown....

Looking at your first post I think you want a second destination for the LLP listener and send the response from 1 channel - you can have multiple destinations for a channel - it should then reply on that port.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Destination as CHANNEL WRITER ... ? faisalamjad Development 1 04-28-2008 01:07 PM
JMS Writer channel - ObjectMessage help josemathews Support 2 01-11-2008 10:08 AM
Channel Questions marchias Support 1 05-16-2007 11:51 AM
Channel Questions marchias Support 1 04-23-2007 05:33 PM
Inbound channel (Destination = File Writer) Error graziano Support 3 09-27-2006 06:36 AM


All times are GMT -8. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation