• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Running Oracle9iAS as a service

 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got 9i running on a development machine, with a web app deployed in the OC4J container. I use the Windows resource kit tools to call the jar file so that the engine runs as a service, and everything runs fine... as long as a user is actually logged into the machine. Once you log out, you can't access the web app, it basically is shutting down the engine (I have a feeling because this is running in a console window).
Is there a way to run a web app in 9i, and have it accessible, without having a user logged into the machine? I'm not very fluent with the Oracle stuff, other than the configurations needed that were provided by the vendor (who admit that they start up the container manually each time).
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll need JRE 1.3.1 or later to get this to work, otherwise the service will shut down as you logoff.
java -Xrs -jar oc4j.jar >>log.txt
The -Xrs is the important part here, which reduces the VM's sensitivity to OS commands. Note that it also disables the Ctrl-C break and kills through task manager, so you'll need to run admin.jar -shutdown to stop the AS.
Try running java -X to read more about advanced options when running java applications.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic