FR [2799327] - Allow testing of accounting posting in development mode

https://sourceforge.net/tracker/?func=detail&aid=2799327&group_id=176962&atid=879335
Make embedded server the default for posting
This commit is contained in:
Carlos Ruiz 2009-09-11 21:34:40 +00:00
parent 2067987bcc
commit c66f6924e2
1 changed files with 3 additions and 1 deletions

View File

@ -1604,7 +1604,9 @@ public class CConnection implements Serializable, Cloneable
* @return true if server is embedded in process
*/
public static boolean isServerEmbedded() {
return "true".equalsIgnoreCase(System.getProperty(SERVER_EMBEDDED));
// defaults to true - it can be disabled passing this parameter to the JVM
// -Dorg.adempiere.server.embedded=false
return ! "false".equalsIgnoreCase(System.getProperty(SERVER_EMBEDDED));
}
public void setAppServerCredential(String principal, String credential)