web stats
[MirthConnect3] change in response behaviour compared to MC2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2014, 07:42 AM
gkittlaus gkittlaus is offline
OBX.3 Kenobi
 
Join Date: Jan 2012
Posts: 104
gkittlaus is on a distinguished road
Default [MirthConnect3] change in response behaviour compared to MC2

Hello,

I have a channel that receives a query, lets say "Query Channel".

In Mirth2 it was quiet easy:
This query is forwarded by the first destination ("send to HIS") to a MLLP listener.
The response of this MLLP listener was then resend to the channel ("Query Channel").
Because the query has a PID segment, the first destination ("send to HIS") filters out the message.
The second one ("respond to source") took the response and converted it to the according format for the requester.

In mirth3 I have a problem:
The query is forwarded by the first destination ("send to HIS") to a MLLP listener.
Now I cannot tell the first destination to send the received response to the very same channel or the second destination, or can I?


thank you and very best regards

EDIT: in the meanwhile I messed up my channel completely. in the new "edit response" of the first destination ("send to HIS") I added this line:
Code:
router.routeMessageByChannelId(channelId, response.getMessage() );
The problem is, that it is now in an endless loop and remains in the first destination with Status "pending".

Last edited by gkittlaus; 03-10-2014 at 08:36 AM.
Reply With Quote
  #2  
Old 03-11-2014, 09:09 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Why are you trying to route a message back through the same channel? That's definitely not recommended (as you saw, that creates an infinite loop); there's always a better way to do it.

You can send a message using a TCP Sender, and then in the next destination retrieve the response from a previous destination and use it. That was true in 2.x as well. It's very likely that you have some misunderstanding about channel/filter logic, or there's some configuration error in your channel. If you post the channel here, it will be easier to troubleshoot.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
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


All times are GMT -8. The time now is 07:31 AM.


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