Announcement

Collapse
No announcement yet.

How does mirth track down port numbers that are in use?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does mirth track down port numbers that are in use?

    How does mirth track down port numbers that are in use?

  • #2
    Mirth Connect ver 3.2.2.7694

    Mirth Connect ver 3.2.2.7694

    Comment


    • #3
      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.

      Comment


      • #4
        You can also make an XLST from the server config.

        Comment


        • #5
          Here is my XSLT that can be run on the server config xml.
          Attached Files

          Comment

          Working...
          X