04.12.2012 Views

Windchill System Administrator's Guide

Windchill System Administrator's Guide

Windchill System Administrator's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RMI<br />

Server Hostname Property<br />

• From outside the corporate intranet, such as from a partner extranet or the<br />

Internet, this name can resolve to a reverse proxy on an external service<br />

network.<br />

By using a DNS alias, access to the system remains location independent. The<br />

physical location of the user does not affect bookmarks, e-mail, or saved HTML<br />

pages. This is important for mobile users.<br />

Many existing <strong>Windchill</strong> applets and applications use Java RMI to invoke server<br />

transactions. There is a continuing shift of focus from this form of communication<br />

towards HTTP and XML. But for now, the <strong>Windchill</strong> development environment<br />

continues to support code generation of classes that use RMI to invoke remote<br />

service methods.<br />

RMI is a Java-centric remote procedure call (RPC) mechanism implemented on<br />

sockets. RMI stub objects perform a remote method invocation between an RMI<br />

client and an RMI server. These stub objects contain a host name and port number<br />

to which a TCP/IP connection is opened by the client. <strong>Windchill</strong> exposes only two<br />

RMI objects to clients: a server manager object and a method server object. Other<br />

RMI objects are used server-to-server to coordinate cached information, but these<br />

are not important for client connectivity.<br />

Each RMI stub contains a server host name. The value serialized into stub objects<br />

is controlled by the java.rmi.server.hostname property of the RMI server.<br />

Although this is a Java system property, it can be set in the <strong>Windchill</strong><br />

wt.properties file, because values in that file are used as Java system properties by<br />

the <strong>Windchill</strong> servers.<br />

Use the xconfmanager utility to set the java.rmi.server.hostname property to a<br />

symbolic name that all clients are able to resolve to a server address. Because Java<br />

applets can connect only to their codebase hosts, it should be the same symbolic<br />

name used in the wt.server.codebase property, which is used as the document base<br />

for <strong>Windchill</strong> HTML pages.<br />

If a <strong>Windchill</strong> server host name alias is used, and it does not resolve to the local<br />

server (such as an alias for an IP load balancing server cluster), the name must be<br />

forced to resolve locally to the loopback address, 127.0.0.1. This is because the<br />

RMI stubs can contain only one host name, which will be used by all clients, both<br />

local and remote. However, to remain local, some local communication between<br />

the server manager and method servers must be guaranteed. If you give the system<br />

its own host name alias, as recommended above (rather than using actual host<br />

names), then you can safely override the local name resolution (in the /etc/hosts<br />

file) for this alias.<br />

B-8 <strong>Windchill</strong> <strong>System</strong> Administrator’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!