When working with the POS I often need to use it in conjunction with back-end and sometimes even eCommerce.
This Windows batch file and container configurations just allow that.
startofbizBoth.bat loads the POS+EPR+eCommerce
startofbizPos.bat loads only the POS
I did not care to write scripts for Linux yet because I do not have any needs.
I will certainly later if nobody has done it before...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@824935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -0,0 +1,295 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<ofbiz-containers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-containers.xsd">
|
||||
<!-- load the ofbiz component container (always first) -->
|
||||
<container name="component-container" class="org.ofbiz.base.container.ComponentContainer"/>
|
||||
|
||||
<!-- load the cached classloader container (always second) -->
|
||||
<container name="classloader-container" class="org.ofbiz.base.container.ClassLoaderContainer"/>
|
||||
|
||||
<container name="commons-vfs-container" class="org.ofbiz.commons.vfs.CommonsVfsContainer"/>
|
||||
<container name="webslinger-container" class="org.ofbiz.webslinger.WebslingerContainer"/>
|
||||
|
||||
<!-- load JNDI/JOTM; this is no longer needed, leaving this in for now just in case someone wants to drop in JOTM from the specialized directory
|
||||
<container name="jotm-container" class="org.ofbiz.jotm.container.JotmContainer">
|
||||
<property name="jndi-config" value="iiop.properties"/>
|
||||
</container>
|
||||
-->
|
||||
|
||||
<!-- load the naming (JNDI) server -->
|
||||
<container name="naming-container" class="org.ofbiz.base.container.NamingServiceContainer">
|
||||
<property name="host" value="0.0.0.0"/>
|
||||
<property name="port" value="51099"/>
|
||||
</container>
|
||||
|
||||
<!-- RMI Service Dispatcher -->
|
||||
<container name="rmi-dispatcher" class="org.ofbiz.service.rmi.RmiServiceContainer">
|
||||
<property name="bound-name" value="RMIDispatcher"/>
|
||||
<property name="bound-host" value="127.0.0.1"/>
|
||||
<property name="bound-port" value="51099"/>
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="client-factory" value="org.ofbiz.service.rmi.socket.ssl.SSLClientSocketFactory"/>
|
||||
<property name="server-factory" value="org.ofbiz.service.rmi.socket.ssl.SSLServerSocketFactory"/>
|
||||
<property name="ssl-keystore" value="framework/base/config/ofbizrmi.jks"/>
|
||||
<property name="ssl-keystore-type" value="JKS"/>
|
||||
<property name="ssl-keystore-pass" value="changeit"/>
|
||||
<property name="ssl-keystore-alias" value="rmissl"/>
|
||||
<property name="ssl-client-auth" value="false"/>
|
||||
</container>
|
||||
|
||||
<!-- JavaMail Listener Container - Triggers MCA Rules -->
|
||||
<!-- if delete-mail is set to true, will delete messages after fetching them. otherwise, will try to mark them as seen
|
||||
mail.store.protocol supports both imap and pop3, but pop3 will not be able to mark messages as seen, so you would need to delete them
|
||||
Sounds like mail.store.protocol value should be "imaps" for GMail inbound emails to work.
|
||||
Not tested found here https://sourceforge.net/forum/message.php?msg_id=5879468 -->
|
||||
<!-- To use the mail listerner just uncomment and go...
|
||||
<container name="javamail-container" class="org.ofbiz.service.mail.JavaMailContainer">
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="dispatcher-name" value="JavaMailDispatcher"/>
|
||||
<property name="run-as-user" value="system"/>
|
||||
<property name="poll-delay" value="300000"/>
|
||||
<property name="delete-mail" value="false"/>
|
||||
<property name="maxSize" value="100000"/>
|
||||
<property name="default-listener" value="store-listener">
|
||||
<property name="mail.store.protocol" value="imap"/>
|
||||
<property name="mail.host" value="[host]"/>
|
||||
<property name="mail.user" value="[user]"/>
|
||||
<property name="mail.pass" value="[pass]"/>
|
||||
<property name="mail.debug" value="false"/>
|
||||
</property>
|
||||
</container>
|
||||
-->
|
||||
|
||||
<!-- load Shark Workflow Engine -->
|
||||
<!-- NOTE: before uncommenting this please see the instructions in the ofbiz/OPTIONAL_LIBRARIES file.
|
||||
<container name="shark-container" class="org.ofbiz.shark.container.SharkContainer">
|
||||
<property name="engine-name" value="Shark"/>
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="dispatcher-name" value="WFDispatcher"/>
|
||||
<property name="admin-user" value="system"/>
|
||||
<property name="admin-pass" value="ofbiz"/>
|
||||
<property name="iiop-host" value="127.0.0.1"/>
|
||||
<property name="iiop-port" value="2000"/>
|
||||
</container>
|
||||
-->
|
||||
|
||||
<!-- load catalina (tomcat) and all web applications -->
|
||||
<!-- TODO: switch to webslinger, for per-site logging
|
||||
<container name="catalina-container" class="org.ofbiz.webslinger.WebslingerCatalinaContainer">
|
||||
-->
|
||||
<container name="catalina-container" class="org.ofbiz.catalina.container.CatalinaContainer">
|
||||
<!-- static configuration for tomcat -->
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="use-naming" value="false"/>
|
||||
<property name="debug" value="0"/>
|
||||
<property name="catalina-runtime-home" value="runtime/catalina"/>
|
||||
<property name="apps-context-reloadable" value="false"/>
|
||||
<property name="apps-cross-context" value="false"/>
|
||||
<property name="apps-distributable" value="false"/>
|
||||
<!-- one or more tomcat engines (servers); map to this + host -->
|
||||
<property name="default-server" value="engine">
|
||||
<property name="default-host" value="0.0.0.0"/>
|
||||
<property name="jvm-route" value="jvm1"/>
|
||||
<property name="access-log-pattern">
|
||||
<property-value>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"</property-value>
|
||||
</property>
|
||||
<property name="access-log-resolve" value="true"/>
|
||||
<property name="access-log-rotate" value="true"/>
|
||||
<property name="access-log-prefix" value="access_log."/>
|
||||
<property name="access-log-dir" value="runtime/logs"/>
|
||||
<property name="enable-request-dump" value="false"/>
|
||||
<!-- uncomment for cluster support
|
||||
<property name="default-server-cluster" value="cluster">
|
||||
<property name="rep-valve-filter">
|
||||
<property-value>.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;</property-value>
|
||||
</property>
|
||||
<property name="manager-class" value="org.apache.catalina.ha.session.DeltaManager"/>
|
||||
<property name="debug" value="5"/>
|
||||
<property name="replication-mode" value="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
|
||||
<property name="tcp-listen-host" value="auto"/>
|
||||
<property name="tcp-listen-port" value="4001"/>
|
||||
<property name="tcp-sector-timeout" value="100"/>
|
||||
<property name="tcp-thread-count" value="6"/>
|
||||
<property name="mcast-bind-addr" value="192.168.2.1"/>
|
||||
<property name="mcast-addr" value="228.0.0.4"/>
|
||||
<property name="mcast-port" value="45564"/>
|
||||
<property name="mcast-freq" value="500"/>
|
||||
<property name="mcast-drop-time" value="3000"/>
|
||||
</property>
|
||||
-->
|
||||
<!-- <property name="ssl-accelerator-port" value="8443"/> -->
|
||||
<property name="enable-cross-subdomain-sessions" value="false"/>
|
||||
</property>
|
||||
<!-- all connectors support type, host, port, enable-lookups -->
|
||||
<property name="ajp-connector" value="connector">
|
||||
<!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/ajp.html for reference -->
|
||||
<property name="allowTrace" value="false"/>
|
||||
<property name="emptySessionPath" value="false"/>
|
||||
<property name="enableLookups" value="false"/>
|
||||
<property name="maxPostSize" value="2097152"/>
|
||||
<property name="protocol" value="AJP/1.3"/>
|
||||
<property name="proxyName" value=""/>
|
||||
<property name="proxyPort" value=""/>
|
||||
<property name="redirectPort" value=""/>
|
||||
<property name="scheme" value="http"/>
|
||||
<property name="secure" value="false"/>
|
||||
<property name="URIEncoding" value="UTF-8"/>
|
||||
<property name="useBodyEncodingForURI" value="false"/>
|
||||
<property name="xpoweredBy" value="true"/>
|
||||
<!-- AJP/13 connector attributes -->
|
||||
<property name="address" value="0.0.0.0"/>
|
||||
<property name="backlog" value="10"/>
|
||||
<property name="maxSpareThreads" value="50"/>
|
||||
<property name="maxThreads" value="200"/>
|
||||
<property name="minSpareThreads" value="4"/>
|
||||
<property name="port" value="8009"/>
|
||||
<property name="tcpNoDelay" value="true"/>
|
||||
<property name="soTimeout" value="60000"/>
|
||||
<property name="tomcatAuthentication" value="true"/>
|
||||
</property>
|
||||
<property name="http-connector" value="connector">
|
||||
<!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html for reference -->
|
||||
<property name="allowTrace" value="false"/>
|
||||
<property name="emptySessionPath" value="false"/>
|
||||
<property name="enableLookups" value="false"/>
|
||||
<property name="maxPostSize" value="2097152"/>
|
||||
<property name="protocol" value="HTTP/1.1"/>
|
||||
<property name="proxyName" value=""/>
|
||||
<property name="proxyPort" value=""/>
|
||||
<property name="redirectPort" value=""/>
|
||||
<property name="scheme" value="http"/>
|
||||
<property name="secure" value="false"/>
|
||||
<property name="URIEncoding" value="UTF-8"/>
|
||||
<property name="useBodyEncodingForURI" value="false"/>
|
||||
<property name="xpoweredBy" value="true"/>
|
||||
<!-- HTTP connector attributes -->
|
||||
<property name="acceptCount" value="10"/>
|
||||
<property name="address" value="0.0.0.0"/>
|
||||
<property name="bufferSize" value="2048"/>
|
||||
<property name="compressableMimeType" value="text/html,text/xml,text/plain"/>
|
||||
<property name="compression" value="on"/>
|
||||
<property name="connectionLinger" value="-1"/>
|
||||
<property name="connectionTimeout" value="60000"/>
|
||||
<property name="disableUploadTimeout" value="false"/>
|
||||
<property name="maxHttpHeaderSize" value="4096"/>
|
||||
<property name="maxKeepAliveRequests" value="100"/>
|
||||
<property name="maxSpareThreads" value="50"/>
|
||||
<property name="maxThreads" value="100"/>
|
||||
<property name="minSpareThreads" value="4"/>
|
||||
<property name="noCompressionUserAgents" value=""/>
|
||||
<property name="port" value="58080"/>
|
||||
<property name="restrictedUserAgents" value=""/>
|
||||
<property name="server" value=""/>
|
||||
<property name="socketBuffer" value="9000"/>
|
||||
<property name="strategy" value="lf"/>
|
||||
<property name="tcpNoDelay" value="true"/>
|
||||
<property name="threadPriority" value="java.lang.Thread#NORM_PRIORITY"/>
|
||||
</property>
|
||||
<property name="https-connector" value="connector">
|
||||
<!-- see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html for reference -->
|
||||
<property name="allowTrace" value="false"/>
|
||||
<property name="emptySessionPath" value="false"/>
|
||||
<property name="enableLookups" value="false"/>
|
||||
<property name="maxPostSize" value="2097152"/>
|
||||
<property name="protocol" value="HTTP/1.1"/>
|
||||
<property name="proxyName" value=""/>
|
||||
<property name="proxyPort" value=""/>
|
||||
<property name="redirectPort" value=""/>
|
||||
<property name="scheme" value="https"/>
|
||||
<property name="secure" value="true"/>
|
||||
<property name="URIEncoding" value="UTF-8"/>
|
||||
<property name="useBodyEncodingForURI" value="false"/>
|
||||
<property name="xpoweredBy" value="true"/>
|
||||
<!-- HTTP connector attributes -->
|
||||
<property name="acceptCount" value="10"/>
|
||||
<property name="address" value="0.0.0.0"/>
|
||||
<property name="bufferSize" value="2048"/>
|
||||
<property name="compressableMimeType" value="text/html,text/xml,text/plain"/>
|
||||
<property name="compression" value="on"/>
|
||||
<property name="connectionLinger" value="-1"/>
|
||||
<property name="connectionTimeout" value="60000"/>
|
||||
<property name="disableUploadTimeout" value="false"/>
|
||||
<property name="maxHttpHeaderSize" value="4096"/>
|
||||
<property name="maxKeepAliveRequests" value="100"/>
|
||||
<property name="maxSpareThreads" value="50"/>
|
||||
<property name="maxThreads" value="100"/>
|
||||
<property name="minSpareThreads" value="4"/>
|
||||
<property name="noCompressionUserAgents" value=""/>
|
||||
<property name="port" value="58443"/>
|
||||
<property name="restrictedUserAgents" value=""/>
|
||||
<property name="server" value=""/>
|
||||
<property name="socketBuffer" value="9000"/>
|
||||
<property name="strategy" value="lf"/>
|
||||
<property name="tcpNoDelay" value="true"/>
|
||||
<property name="threadPriority" value="java.lang.Thread#NORM_PRIORITY"/>
|
||||
<!-- SSL connector attributes -->
|
||||
<property name="sSLImplementation" value="org.ofbiz.catalina.container.SSLImpl"/>
|
||||
<property name="algorithm" value="SunX509"/>
|
||||
<!-- the clientAuth to "want" in order to receive certs from the client;
|
||||
note that this isn't set this way by default because with certain browsers
|
||||
(like Safari) it breaks access via HTTPS, so until that problem is fixed
|
||||
the default will be false -->
|
||||
<property name="clientAuth" value="false"/>
|
||||
<property name="keystoreFile" value="framework/base/config/ofbizssl.jks"/>
|
||||
<property name="keystorePass" value="changeit"/>
|
||||
<property name="keystoreType" value="JKS"/>
|
||||
<property name="sslProtocol" value="TLS"/>
|
||||
<property name="ciphers" value=""/>
|
||||
</property>
|
||||
</container>
|
||||
|
||||
|
||||
<!-- load the JPOS devices -->
|
||||
<container name="jpos.device-container" class="org.ofbiz.pos.container.JposDeviceContainer">
|
||||
<property name="CashDrawer.1" value="NullCashDrawer"/>
|
||||
<property name="Receipt" value="NullReceipt"/>
|
||||
<!--property name="Receipt" value="TM-T88III"/-->
|
||||
<!--property name="Receipt" value="StarTSP600"/-->
|
||||
<!--property name="Receipt" value="POSPrinter"/-->
|
||||
<property name="Keyboard" value="GenericKeyboard"/>
|
||||
<property name="Scanner" value="GenericScanner"/>
|
||||
<property name="Msr" value="TestMsr"/>
|
||||
<property name="PinPad" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="Journal" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
|
||||
</container>
|
||||
|
||||
<!-- load the POS GUI -->
|
||||
<container name="pos-container" class="org.ofbiz.pos.container.PosContainer">
|
||||
<property name="startup-directory" value="specialpurpose/pos/config/"/>
|
||||
<property name="startup-file" value="xpos.properties"/>
|
||||
<property name="dispatcher-name" value="POSDispatcher"/>
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="xui-session-id" value="pos-1"/>
|
||||
<property name="facility-id" value="MyRetailStore"/>
|
||||
<property name="look-and-feel" value="com.jgoodies.looks.plastic.PlasticLookAndFeel"/>
|
||||
</container>
|
||||
|
||||
<!-- load BeanShell remote telnet server -->
|
||||
<container name="beanshell-container" class="org.ofbiz.base.container.BeanShellContainer">
|
||||
<!-- the port below and port-1 will be opened by beanshell -->
|
||||
<property name="telnet-port" value="9994"/>
|
||||
<property name="app-name" value="OFBiz"/>
|
||||
</container>
|
||||
</ofbiz-containers>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<ofbiz-containers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-containers.xsd">
|
||||
<!-- load the ofbiz component container (always first) -->
|
||||
<container name="component-container" class="org.ofbiz.base.container.ComponentContainer"/>
|
||||
|
||||
<!-- load the cached classloader container (always second) -->
|
||||
<container name="classloader-container" class="org.ofbiz.base.container.ClassLoaderContainer"/>
|
||||
|
||||
<!-- load the JPOS devices -->
|
||||
<container name="jpos.device-container" class="org.ofbiz.pos.container.JposDeviceContainer">
|
||||
<property name="CashDrawer.1" value="NullCashDrawer"/>
|
||||
<property name="Receipt" value="NullReceipt"/>
|
||||
<!--property name="Receipt" value="TM-T88III"/-->
|
||||
<!--property name="Receipt" value="StarTSP600"/-->
|
||||
<property name="Keyboard" value="GenericKeyboard"/>
|
||||
<property name="Scanner" value="GenericScanner"/>
|
||||
<property name="Msr" value="TestMsr"/>
|
||||
<property name="PinPad" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="Journal" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
|
||||
<property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
|
||||
</container>
|
||||
|
||||
<!-- load the POS GUI -->
|
||||
<container name="pos-container" class="org.ofbiz.pos.container.PosContainer">
|
||||
<property name="startup-directory" value="specialpurpose/pos/config/"/>
|
||||
<property name="startup-file" value="xpos.properties"/>
|
||||
<property name="class-package-name " value="net.xoetrope.swing"/>
|
||||
<property name="dispatcher-name" value="POSDispatcher"/>
|
||||
<property name="delegator-name" value="default"/>
|
||||
<property name="xui-session-id" value="pos-1"/>
|
||||
<property name="facility-id" value="MyRetailStore"/>
|
||||
<property name="look-and-feel" value="com.jgoodies.looks.plastic.PlasticLookAndFeel"/>
|
||||
</container>
|
||||
|
||||
<!-- load BeanShell remote telnet server -->
|
||||
<container name="beanshell-container" class="org.ofbiz.base.container.BeanShellContainer">
|
||||
<!-- the port below and port-1 will be opened by beanshell -->
|
||||
<property name="telnet-port" value="9994"/>
|
||||
<property name="app-name" value="OFBiz"/>
|
||||
</container>
|
||||
</ofbiz-containers>
|
||||
@@ -0,0 +1,59 @@
|
||||
echo off
|
||||
rem #####################################################################
|
||||
rem Licensed to the Apache Software Foundation (ASF) under one
|
||||
rem or more contributor license agreements. See the NOTICE file
|
||||
rem distributed with this work for additional information
|
||||
rem regarding copyright ownership. The ASF licenses this file
|
||||
rem to you under the Apache License, Version 2.0 (the
|
||||
rem "License"); you may not use this file except in compliance
|
||||
rem with the License. You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing,
|
||||
rem software distributed under the License is distributed on an
|
||||
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
rem KIND, either express or implied. See the License for the
|
||||
rem specific language governing permissions and limitations
|
||||
rem under the License.
|
||||
rem #####################################################################
|
||||
|
||||
rem ### Console log file
|
||||
rem set OFBIZ_LOG=runtime\logs\console.log
|
||||
|
||||
rem ### Delete the last log
|
||||
rem del %OFBIZ_LOG%
|
||||
|
||||
rem ###VM args block ####################################################
|
||||
rem set MEMIF=-Xms128M -Xmx512M -XX:MaxPermSize=128m
|
||||
rem # RMI settings
|
||||
rem set DEBUG=-Dsun.rmi.server.exceptionTrace=true
|
||||
rem # Automatic IP address for Windows
|
||||
rem ipconfig | find "IP." | find /v "::" | find /v "0.0.0.0" > tmp.tmp
|
||||
rem for /f "tokens=2* delims=:" %%a in (tmp.tmp) do for %%b IN (%%a) do set IPADDR=%%b
|
||||
rem del tmp.tmp
|
||||
rem set RMIIF=-Djava.rmi.server.hostname=%IPADDR%
|
||||
rem # Not needed anymore, for history
|
||||
rem set MISC=-Duser.language=en
|
||||
rem set VMARGS=%MEMIF% %MISC% %DEBUG% %RMIIF%
|
||||
rem ####################################################################
|
||||
|
||||
rem ### Worldpay Config
|
||||
rem set VMARGS=-Xbootclasspath/p:applications\accounting\lib\cryptix.jar %VMARGS%
|
||||
|
||||
|
||||
rem ### Different ways of launching OFBiz ##############################
|
||||
rem ### start ofbiz with previous set VMARGS
|
||||
rem "%JAVA_HOME%\bin\java" %VMARGS% -jar ofbiz.jar > %OFBIZ_LOG%
|
||||
|
||||
rem ### This one is for more of a debugging mode
|
||||
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log
|
||||
|
||||
rem ### Simple easy to read line
|
||||
echo on
|
||||
copy framework\base\config\both-containers.xml framework\base\config\pos-containers.xml /y
|
||||
"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -jar ofbiz.jar -pos
|
||||
echo off
|
||||
rem ### If you would prefer the console output to be logged rather than displayed switch out the above line for this one
|
||||
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -jar ofbiz.jar > runtime\logs\console.log
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
echo off
|
||||
rem #####################################################################
|
||||
rem Licensed to the Apache Software Foundation (ASF) under one
|
||||
rem or more contributor license agreements. See the NOTICE file
|
||||
rem distributed with this work for additional information
|
||||
rem regarding copyright ownership. The ASF licenses this file
|
||||
rem to you under the Apache License, Version 2.0 (the
|
||||
rem "License"); you may not use this file except in compliance
|
||||
rem with the License. You may obtain a copy of the License at
|
||||
rem
|
||||
rem http://www.apache.org/licenses/LICENSE-2.0
|
||||
rem
|
||||
rem Unless required by applicable law or agreed to in writing,
|
||||
rem software distributed under the License is distributed on an
|
||||
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
rem KIND, either express or implied. See the License for the
|
||||
rem specific language governing permissions and limitations
|
||||
rem under the License.
|
||||
rem #####################################################################
|
||||
|
||||
rem ### Console log file
|
||||
rem set OFBIZ_LOG=runtime\logs\console.log
|
||||
|
||||
rem ### Delete the last log
|
||||
rem del %OFBIZ_LOG%
|
||||
|
||||
rem ###VM args block ####################################################
|
||||
rem set MEMIF=-Xms128M -Xmx512M -XX:MaxPermSize=128m
|
||||
rem # RMI settings
|
||||
rem set DEBUG=-Dsun.rmi.server.exceptionTrace=true
|
||||
rem # Automatic IP address for Windows
|
||||
rem ipconfig | find "IP." | find /v "::" | find /v "0.0.0.0" > tmp.tmp
|
||||
rem for /f "tokens=2* delims=:" %%a in (tmp.tmp) do for %%b IN (%%a) do set IPADDR=%%b
|
||||
rem del tmp.tmp
|
||||
rem set RMIIF=-Djava.rmi.server.hostname=%IPADDR%
|
||||
rem # Not needed anymore, for history
|
||||
rem set MISC=-Duser.language=en
|
||||
rem set VMARGS=%MEMIF% %MISC% %DEBUG% %RMIIF%
|
||||
rem ####################################################################
|
||||
|
||||
rem ### Worldpay Config
|
||||
rem set VMARGS=-Xbootclasspath/p:applications\accounting\lib\cryptix.jar %VMARGS%
|
||||
|
||||
|
||||
rem ### Different ways of launching OFBiz ##############################
|
||||
rem ### start ofbiz with previous set VMARGS
|
||||
rem "%JAVA_HOME%\bin\java" %VMARGS% -jar ofbiz.jar > %OFBIZ_LOG%
|
||||
|
||||
rem ### This one is for more of a debugging mode
|
||||
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log
|
||||
|
||||
rem ### Simple easy to read line
|
||||
echo on
|
||||
copy framework\base\config\pos-containers.xml.bak framework\base\config\pos-containers.xml /y
|
||||
"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -jar ofbiz.jar -pos
|
||||
echo off
|
||||
rem ### If you would prefer the console output to be logged rather than displayed switch out the above line for this one
|
||||
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=128m -jar ofbiz.jar > runtime\logs\console.log
|
||||
|
||||
Reference in New Issue
Block a user