Jump to Real's How-to Main page

Get the server name (PB/JAVA)

TransactionServer ts
Management mgmt

this.getContextService("TransactionServer", ts)
its_jag.CreateInstance(mgmt, "Jaguar/Management")
return mgmt.getServer()
In Java
// web server name
String hostname = request.getServerName();   
// jaguar server name ex: Jaguar
String servername = com.sybase.jaguar.server.Jaguar.getServerName();  

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]