service : Java Glossary

go to home page S words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
service
Server software that sits atop IP, UDP or TCP/IP are called services. There is usually one service per protocol supported. Windows NT/W2K use the term more generally to mean any program that runs invisibly in the background. Once you start a service with net start xxxx, it keeping running, even if you reboot until you stop the service with net stop xxxx.

There a list of sevices and their associated port names in the following file: services file.

UNIX: /etc/services
Win98: C:\Windows\services
WinNT, W2K, WXP C:\WINNT\system32\drivers\etc\services
The Format is as follows:
service name port num/protocol
ftp 21/tcp
snmp 161/udp
A protocol mentioned in this file is not necessarily running or even supported or your computer, either as server or client. For a list of the most common well-known ports see port. IANA maintains the full list.

Windows Service

Windows has a more general meaning for service. It is a program automatically started whenever windows starts and automatically gracefully shut down whenever Windows shuts down. For example, you might run your MySQL database that way to make sure it is always available. For details see the section on setting up a service in the MySQL manual.

In NT/W2K/XP you can start and stop services and check out how they are configured at Settings ⇒ Control Panel ⇒ administrative tools ⇒ Component Services ⇒ Services (local).

In Vista type Ctrl+Alt+Del and select the Task Manager ⇒ click the services tab ⇒ click services in the bottom right.

Alternatively, in Vista click Start ⇒ Administrative Services ⇒ Services.

You can find out what Windows services are running with:

net start
You can stop a service with:
net stop "service name"
ObjectWeb make an opensource tool called JavaService to convert a Java App into a Windows service. It uses JNI to launch a JVM and load the app. Your app must implement a startup, main and shutdown method. Another such tool is Java Service Wrapper.

When you uninstall a package, it should delete the associated services. If it fails to, use regedit to delete the service which will be filed under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/service.html J:\mindprod\jgloss\service.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.107]
You are visitor number 176.