web stats
How does mirth track down port numbers that are in use? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2015, 03:56 PM
sleepy68 sleepy68 is offline
What's HL7?
 
Join Date: Feb 2015
Posts: 3
sleepy68 is on a distinguished road
Default How does mirth track down port numbers that are in use?

How does mirth track down port numbers that are in use?
Reply With Quote
  #2  
Old 10-29-2015, 04:14 PM
sleepy68 sleepy68 is offline
What's HL7?
 
Join Date: Feb 2015
Posts: 3
sleepy68 is on a distinguished road
Default Mirth Connect ver 3.2.2.7694

Mirth Connect ver 3.2.2.7694
Reply With Quote
  #3  
Old 10-30-2015, 04:26 AM
appsbyaaron's Avatar
appsbyaaron appsbyaaron is offline
Mirth Guru
 
Join Date: Nov 2011
Location: Florida, USA
Posts: 377
appsbyaaron is on a distinguished road
Default

I've never seen a feature like that. It would be handy to have a simple report that could be run.

I built a channel that queries the db

Source DB Reader:
Code:
select c.channel, c.name from channel c
Source transformer - javascript:
Code:
var temp = msg['channel'].toString();
//logger.info(temp);
var start = temp.indexOf("\<port\>");
var end = temp.indexOf("\<\/port\>");

var port1 = temp.substring(start+6, end);
port1 = port1+"\n";
Then write out the data in a File Writer Destination. I'm sure there is a much better way to do this. Other than that we keep a spreadsheet with channel and port data.
Reply With Quote
  #4  
Old 12-01-2015, 10:20 AM
daveCPH daveCPH is offline
Mirth Newb
 
Join Date: Apr 2015
Posts: 6
daveCPH is on a distinguished road
Default

You can also make an XLST from the server config.
Reply With Quote
  #5  
Old 12-10-2015, 05:46 AM
daveCPH daveCPH is offline
Mirth Newb
 
Join Date: Apr 2015
Posts: 6
daveCPH is on a distinguished road
Default

Here is my XSLT that can be run on the server config xml.
Attached Files
File Type: xml portList.xml (1.8 KB, 49 views)
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:48 PM.


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