This content has been marked as final. Show 1 reply
what's your actual target?
-Djava.io.tmpdir=c:\somedirectorybasically looks good. However, I'm not sure why you want to use it to store your APEX Listener's configuration. Using
javaservice -install “Oracle OC4J” “C:\Program Files\Java\jdk1.5.0_11\jre\bin\client\jvm.dll” -XX:MaxPermSize=128m "-Djava.io.tmpdir=c:\OC4J\apex_lsnr_config"I see two possible issues: One with your tmpdir, the other one with your JDK version.
“-Djava.class.path=D:\OC4J\j2ee\home\oc4j.jar” -start oracle.oc4j.loader.boot.BootStrap -description “oc4j 10.1.3”
Let's start with the latter:
As documented in APEX Listener's Installation Guide, a JDK 1.6.0 Update 20 or higher is required. It seems your OC4J is using 1.5.0 Update 11. You'll very likely encounter other issues than just losing your configuration upon restart.
Concerning your tmpdir
The option you set affects the whole OC4J. I'm not sure you acutally want all temp stuff to be processed in there. Despite that, it stays a temporary location and is due to be erased by OC4J upon each start.
The recommended way to store your APEX Listener's configuration would be to set the parameter config.dir in the web.xml of your apex.war . I really recommend to edit the web.xml before deploying the war file instead of modifying the web.xml after depoyment, so you'll be sure that even after a redeployment the proper configuration will be used.