web stats
Launching Mirth from external launcher - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2020, 01:10 PM
rutledj rutledj is offline
Mirth Guru
 
Join Date: Nov 2010
Location: North Carolina
Posts: 397
rutledj is on a distinguished road
Default Launching Mirth from external launcher

I'm wondering if there is an api call that can actually launch Mirth Connect (and log in) if the server IP and credentials are passed in.

I was thinking I might could build something in a .net application that could store all of the Mirth instances (IPs) and the credentials for each so that with a push of a button, it could launch and log into all of them.

I have 9 instances that I log into each morning and that would be a nice feature.

Any ideas if this is possible?
Reply With Quote
  #2  
Old 02-10-2020, 02:45 PM
stormcel stormcel is offline
OBX.3 Kenobi
 
Join Date: Mar 2010
Location: Phoenix
Posts: 169
stormcel is on a distinguished road
Default

Can someone shed some light on whether there are any mirth connect administrator launcher command line switches? Is there an argument that I can pass to the launcher, say in a batch or bash script while firing up the java command?
say... ./launcer.exe -opensite 1 ???
Reply With Quote
  #3  
Old 02-13-2020, 10:55 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,095
agermano is on a distinguished road
Default

Code:
./launcher --help
INFO  2020-02-13 13:52:59,577 [main] com.mirth.connect.client.launcher.MirthClientLauncher: Arguments: [--help]
usage: launch
 -a,--address <arg>            The address to connect to Mirth Connect
                               with.
 -d,--allow-incorrect-digest   Allows JARs that fail digest verification.
                               This should only be used for
                               development/testing purposes.
 -h,--help                     Prints this help message.
 -j,--java-console             If specified, the Administrator will be
                               launched with a Java console dialog.
 -k,--allow-self-signed        Allows JARs signed with self-signed
                               certificates to be verified. This should
                               only be used for development/testing
                               purposes.
 -m,--max-heap-size <arg>      The client-side max heap size to use when
                               launching the Administrator.
 -o,--stay-open                If specified, the launcher will stay open
                               after launching the Administrator.
 -v,--use-same-jvm             If specified, the Administrator will be
                               launched using the same JVM as the
                               launcher. Useful when you don't have access
                               to a launcher script.
Not sure why this isn't listed in the help above, but you can pass the path to a .jnlp file as an argument and it will import as a new connection and immediately start connecting.
Reply With Quote
  #4  
Old 02-13-2020, 12:17 PM
stormcel stormcel is offline
OBX.3 Kenobi
 
Join Date: Mar 2010
Location: Phoenix
Posts: 169
stormcel is on a distinguished road
Default

THAT WORKS GREAT!!!
It's good to know that you can shell script the launcher like that!
The only improvement is if we could pass it the user/pass from the command line.
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 01:14 PM.


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