servertool(1)
β¨ NAME β¨
servertool β bestie, this is your cute lil' easy-to-use interface that lets developers register, unregister, start up, and shut down a persistent server. Yes, all of that, from one lil command line. Iconic. π
This one lives in the Java IDL and RMI-IIOP Tools family, manual section 1, iykyk. π¦
πΈ SYNOPSIS πΈ
servertool -ORBInitialPort nameserverport [ options ] [ commands ]
optionsβ the command-line options. Go peek at OPTIONS below, babes. β¨commandsβ the command-line commands. Go peek at COMMANDS below. π
π DESCRIPTION π
So the servertool command hands you the command-line interface that developers use to register, unregister, start up, and shut down a persistent server. And because that wasn't enough slay, the command-line commands also let you pull various statistical information about the server. Head to COMMANDS for the whole menu. π
π OPTIONS π
-ORBInitialHost nameserverhostβ okay so this one is required, no skipping it (the page says "This options is required," and yes we all noticed the typo, we're moving on π«Ά). It tells you the host machine where the name server runs and listens for incoming requests. Thenameserverhostvalue has to specify the port on which the orb is running and listening for requests. When this option isn't specified, the value defaults tolocalhost. And listen: iforbdandservertoolare running on different machines, then you must specify the name or IP address of the host whereorbdis running. No shortcuts. π«
Note: on Oracle Solaris, you have to become a root user to start a process on a port below1024. Oracle recommends using a port number above or equal to1024for thenameserverportvalue. Protect your peace (and your ports). π
-Joptionβ passesoptionto the Java Virtual Machine, whereoptionis one of the options described on the reference page for the Java application launcher. For example,-J-Xms48msets the startup memory to48 MB. Seejava(1). β¨
π COMMANDS π
You can start the servertool command with or without a command-line command. Two moods:
- If you did not specify a command when you started
servertool, then the command-line tool displays theservertoolprompt where you can enter commands:servertool >. π«§ - If you do specify a command when you start
servertool, then the Java IDL Server Tool starts, executes the command, and exits. Main character energy: arrives, does the thing, leaves. π¨
register -server server-class-name -classpath classpath-to-server [ -applicationName application-name -args args-to-server -vmargs flags-for-JVM ]β registers a new persistent server with the Object Request Broker Daemon (ORBD). If the server isn't already registered, then it gets registered and activated. This command makes an installation method get called in the main class of the server identified by the-serveroption. That installation method must bepublic static void install(org.omg.CORBA.ORB). It's optional, and it's there so developers can provide their own server installation behavior β like creating a database schema. Fancy. πunregister -serverid server-id | -applicationName application-nameβ unregisters a server from the ORBD using either its server ID or its application name. This command makes an uninstallation method get called in the main class of the server identified by the-serveroption. That uninstall method must bepublic static void uninstall(org.omg.CORBA.ORB). It's optional too, and it lets developers provide their own server uninstallation behavior β like undoing whatever the install method did. It's giving β¨balanceβ¨.getserverid -applicationName application-nameβ returns the server ID that corresponds to theapplication-namevalue. It's the "who dis" of commands. πlistβ lists information about all persistent servers registered with the ORBD. The full roster. πlistappnamesβ lists the application names for all servers currently registered with the ORBD. Name-drop them all, bestie. πlistactiveβ lists information about all persistent servers that were started by the ORBD and are currently running. Only the ones still up and thriving. π₯locate -serverid server-id | -applicationName application-name [ -endpointType endpointType ]β locates the endpoints (ports) of a specific type for all ORBs created by a registered server. If a server isn't already running, then it gets activated. If noendpointTypevalue is specified, then you get back the plain/non-protected endpoint associated with each ORB in a server. Default behavior, no cap. β¨locateperorb -serverid server-id | -applicationName application-name [ -orbid ORB-name ]β locates all the endpoints (ports) registered by a specific Object Request Broker (ORB) of a registered server. If the server isn't already running, then it gets activated. If anorbidisn't specified, then the default value of""is assigned to theorbid. And if any ORBs were created with anorbidof empty string, then all ports registered by it are returned. Sneaky but valid. π¦orblist -serverid server-id | -applicationName application-nameβ lists the ORBId of the ORBs defined on a server. An ORBId is the string name for the ORB created by the server. If the server isn't already running, then it gets activated. Name tag moment. π·οΈshutdown -serverid server-id | -applicationName application-nameβ shuts down an active server that's registered with ORBD. During execution of this command, the shutdown method defined in the class specified by either the-serveridor-applicationNameparameter is also called to shut down the server process. Going to bed, respectfully. π΄startup -serverid server-id | -applicationName application-nameβ starts up or activates a server that's registered with ORBD. If the server isn't running, then this command starts it. If the server is already running, then an error message is displayed. No double-starting, bestie, it's not that kind of party. π«helpβ lists all the commands available to the server through theservertoolcommand. Your safety net. π«Άquitβ exits theservertoolcommand. Byeeee. π
π SEE ALSO π
orbd(1)β the whole other half of this duo, go say hi. π
okay that's literally the whole page, no skips, no crumbs left behind β¨ This was the JDK 8 version, dated 21 November 2013 β shoutout to that era, it ate and left no notes. Stay slaying, server bestie ππΈπ
π¦ where this page comes from
- alpine 3.24: openjdk8-doc 8.492.09-r0 Β· custom
- debian bookworm: nvidia-openjdk-8-jre 9.+8u372-ga-1~11.8.0-5~deb12u1
- debian trixie: nvidia-openjdk-8-jre 9.+8u452-ga-1~12.4.1-2
- nixos 26.05: scilab-bin 6.1.1
- ubuntu jammy: openjdk-8-jre-headless 8u312-b07-0ubuntu1
- ubuntu jammy: openjdk-8-jre-headless 8u504-ga-1ubuntu1~22.04.3
- ubuntu noble: openjdk-8-jre-headless 8u402-ga-8build1
- ubuntu noble: openjdk-8-jre-headless 8u504-ga-1ubuntu1~24.04.3
- ubuntu questing: openjdk-8-jre-headless 8u462-ga-1
- ubuntu questing: openjdk-8-jre-headless 8u492-ga~us2-0ubuntu1~25.10.1
- ubuntu resolute: openjdk-8-jre-headless 8u482-ga~us1-0ubuntu1
- ubuntu resolute: openjdk-8-jre-headless 8u504-ga-1ubuntu1~26.04.3
- ubuntu stonking: openjdk-8-jre-headless 8u504-ga-1ubuntu1
- Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms