Hi,
I have created a .net windows service to start the Oracle OC4J using the
startup batch file. Though the OC4J has started, the windows service still
shows starting.How Can I change the windows service status to started
(without killing the process) so that the windows service can be used to
stop the OC4j instance. Thanks for your help in advance.
S
Razzie - 16 Sep 2004 15:19 GMT
Sunil,
I created some Windows Services and I always have a lot of problems with
them. When I start them in the services control panel, they sometimes take
long time to start, only to return an error 'Service did not respond' or
something while they actually did start. I can't control them anymore after
that.
This behaviour can be caused by several things.
- Make sure your eventlog is not full when starting service
- Try to avoid doing things like reading files, connecting to servers or
databases, etc, in the OnStart method, but place them in a seperate thread.
Once your service stopped responding, you can't control it anymore so my
advice is to reboot your pc, check for my above points, and reinstall +
start the service.
Good luck,
Razzie
> Hi,
> I have created a .net windows service to start the Oracle OC4J using the
[quoted text clipped - 4 lines]
>
> S
Willy Denoyette [MVP] - 17 Sep 2004 09:46 GMT
Hard to tell without seeing any code, but in general it is due to the fact
that you don't return from you OnStart method.
Willy.
> Hi,
> I have created a .net windows service to start the Oracle OC4J using the
[quoted text clipped - 4 lines]
>
> S