web stats
Queue'ing Issue - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2017, 06:29 AM
MrJohnathanBravo MrJohnathanBravo is offline
What's HL7?
 
Join Date: Nov 2009
Posts: 4
MrJohnathanBravo is on a distinguished road
Question Queue'ing Issue

Hello all
I've been having a problem with a recently created set of channels. I have a routing channel that feeds 2 other channels via a transform filter. My problem comes when the second channel is unable to perform its task and the messages are queued. When messages are queued in the second channel it stops Mirth from processing any messages in any of the other channels , most specifically the routing channel.

Once I am aware of the queued messages I stop the second channel until the error condition clears up . While the second channel is stopped the routing channel and the other channel being routed to both work properly and pick up where they left off.

I'm not at all sure what settings to adjust to get every channel to work asynchronously. Does anyone have some insight? Thanks in advance

Mr Johnathan Bravo
Reply With Quote
  #2  
Old 05-26-2017, 03:12 PM
bkirsanov bkirsanov is offline
Mirth Newb
 
Join Date: Feb 2017
Posts: 6
bkirsanov is on a distinguished road
Default

What are your queuing settings? The status of one channel shouldn't impact other channels on the box. The exception, of course, is that if you have an error on the receiving channel that is backing up the feeder channel, then yes, it may cause issues with the feeder channel. If you have the feeder destination set to queue and the receiver source set to queue, there shouldn't be any impact on other channels, messages will just continue to queue until the issue has been resolved.
__________________
Brian Kirsanov
Manager, Client Engagements
Zen Healthcare IT
briank@consultzen.com
www.consultzen.com
Youtube: https://goo.gl/yCd3UX
Reply With Quote
  #3  
Old 05-30-2017, 07:44 AM
MrJohnathanBravo MrJohnathanBravo is offline
What's HL7?
 
Join Date: Nov 2009
Posts: 4
MrJohnathanBravo is on a distinguished road
Default

Brian
Thanks for the reply. on the feeder channel I have Source Queue "on (respond before processing) , and response set to "Auto-Generate ( before Processing)', Process batch is "No". The channel is tcp listener and I use a "source" filter script to do the routing with code like this.
Code:
if ((msgtype.indexOf("ORM") != -1))
	{
		router.routeMessage("Chan1", msg1);
		logger.info ('Message type is :' + msgtype + '\n');
		
	}
else if((msgtype.indexOf("ORU") != -1))
	{
		router.routeMessage("Chan2", msg1);
		logger.info ('Messgae type is :' + msgtype + '\n');
	}
else
	{
		logger.info("DOH! \n");
	}
In this I am not using the "destinations" at all. Could using this method to route the data be the cause of my issues. In that is
Code:
 router.routeMessage("Chan1",msg1);
not returning instantly? The chan1 Source Queue settings are the same as the feeder channel.

Thanks again for your assistance. I was off a few days and am now back at this issue.
Mr Johnathan Bravo
Reply With Quote
  #4  
Old 05-30-2017, 03:03 PM
bkirsanov bkirsanov is offline
Mirth Newb
 
Join Date: Feb 2017
Posts: 6
bkirsanov is on a distinguished road
Default

Yeah, you are essentially removing one layer of queuing by doing it that way. Take a look at http://www.mirthcorp.com/community/f...ead.php?t=9465 for some ideas on workarounds.
__________________
Brian Kirsanov
Manager, Client Engagements
Zen Healthcare IT
briank@consultzen.com
www.consultzen.com
Youtube: https://goo.gl/yCd3UX
Reply With Quote
  #5  
Old 05-31-2017, 04:22 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

I would remove the source filter script and use destination set filtering to accomplish the same thing. Setup destinations for each channel and configure the queuing.
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #6  
Old 05-31-2017, 10:05 AM
MrJohnathanBravo MrJohnathanBravo is offline
What's HL7?
 
Join Date: Nov 2009
Posts: 4
MrJohnathanBravo is on a distinguished road
Default

Thanks. I'm going to try that and test later this week. Will update the post after I do.
MrJohnathanBravo
Reply With Quote
Reply

Tags
routing channel, sql, sub channel

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 05:01 PM.


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