Like Kalle said. For example, if you use WebLogic, inside the launch script you will find: java <all the stuff> -DserverName=Server_1
Almost all appServers starts through a script (on unix systems), you should add it to each instance(in a cluster, i mean) if it is missing. Cheers, Giulio