Wednesday, February 13, 2008

OC4J as a Service

Following the last post on stopping oc4j from automatic running, you may want to run oc4j as a service, so that is can be added to a batch file that starts all the analytics services.


So, to Run OC4J as a windows service

If you want to run oc4j as a windows service download the open source tool named JavaService.exe from http://javaservice.objectweb.org/ which can create Windows Services for Java Programs, adjust and execute the following command:
javaservice -install "Oracle BI: OC4J Service" "D:\jdk1.5.0_09\jre\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=d:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -description "Oracle BI Oc4J Service"

Now you can add to your 'net start' commands batch file.

Credit to Andreass in the Majendi team for this.

UPDATE: Venkat has also blogged on this subject, including some screen shots.

3 comments:

Krishnamoorthy said...

This is really helpful. Thanks a lot.

Venkatakrishnan said...

Adrian - Such a small world :-). I have now updated my blog entry to reflect yours.

ngerard said...

Thanks for this good information.

Just for information.

You have also a 64 bit version of javaservice which is available only with the release V2.0.7.

An other good way is to create a schedule task on startup.

The Cowes

The Cowes
Cowes Racing

Sudoku