web stats
Passing java parameters to windows service - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2011, 08:50 AM
Edmund Edmund is offline
OBX.1 Kenobi
 
Join Date: May 2009
Posts: 39
Edmund is on a distinguished road
Post Passing java parameters to windows service

In Mirth 1.8.x it was possible to pass java parameters to mirth by editing wrapper.conf. For example:

# Java Additional Parameters
wrapper.java.additional.1=-Djavax.net.ssl.trustStore=<path to cacerts>

How do I accomplish the same in Mirth Connect 2.1?

Thank you.
Reply With Quote
  #2  
Old 05-13-2011, 08:56 AM
Edmund Edmund is offline
OBX.1 Kenobi
 
Join Date: May 2009
Posts: 39
Edmund is on a distinguished road
Default

I think I can see where the parameters should be added:

mcservice.vmoptions

but, it would be great if someone could confirm.

Thanks.
Reply With Quote
  #3  
Old 05-13-2011, 01:42 PM
geraldb geraldb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 314
geraldb is an unknown quantity at this point
Default

Yep, that's correct. From the 1.8.2 to 2.0 upgrade guide:

Quote:
Java JVM parameters: Add any Java JVM parameters that were in $MIRTH_HOME/conf/wrapper.conf to the mirthconnect_service.vmoptions (if using the service) or Mirth Connect.vmoptions (if using the stand-alone server) file, one property per line.
http://www.mirthcorp.com/community/w...+Upgrade+Guide
__________________
Gerald Bortis | Chief Information Officer | Mirth Corporation
Reply With Quote
  #4  
Old 05-14-2011, 12:42 AM
Edmund Edmund is offline
OBX.1 Kenobi
 
Join Date: May 2009
Posts: 39
Edmund is on a distinguished road
Default

Many thanks for replying, and my apologies for not reading the upgrade guide properly.

One small point, in case it's of use to anyone else who comes across this thread; the filename has changed in 2.1 from mirthconnect_service.vmoptions to mcservice.vmoptions.

Last edited by Edmund; 05-14-2011 at 12:45 AM.
Reply With Quote
  #5  
Old 05-31-2011, 03:13 AM
Edmund Edmund is offline
OBX.1 Kenobi
 
Join Date: May 2009
Posts: 39
Edmund is on a distinguished road
Default

One further question: Are the -classpath, -classpath/a and -classpath/p entries honoured in the .vmoptions files?

For example:
Code:
-classpath/p lib/commons/commons-collections-3.2.1.jar custom-lib/my-appender.jar
The reason why I ask is because I'm trying to use a custom log4j appender, and the only way I've managed to get it to work is by modifying the class path entry in the mirth-launcher.jar manifest.

Thanks in advance
Reply With Quote
  #6  
Old 05-31-2011, 07:20 AM
Edmund Edmund is offline
OBX.1 Kenobi
 
Join Date: May 2009
Posts: 39
Edmund is on a distinguished road
Default

I think I've found the answer to my question. in the .vmoptions file classpath entries need to be seperated by semicolons (in the manifest they are seperated by spaces).
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 02:26 AM.


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