Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2004

Tip: Looking for answers? Try searching our database.

Windows Service to start OC4J

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sunil - 16 Sep 2004 14:29 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.