Adobe 38000382 - Macromedia JRun - Mac Manual page 67

Jrun sdk guide
Table of Contents

Advertisement

Attribute
server=X
The following example adds a new server called MrBlond:
Example
...
<%
String host = "localhost";
String server = "MrBlond";
String serverName = "MrBlond";
String serverDir = "c:/jrun4/servers/MrBlond";
%>
<jmcmgmt:add server="<%= server %>" errorId="error">
<jmcmgmt:parameter name="host" value="<%= host %>"/>
<jmcmgmt:parameter name="servername" value="<%= serverName %>"/>
<jmcmgmt:parameter name="serverdir" value="<%= serverDir %>"/>
<jmcmgmt:parameter name="initializefiles" value="true"/>
</jmcmgmt:add>
<% if (error != null) {
out.println("<B>Error Creating server:</B>");
out.println(error);
} else {
out.println("Server created.");
} %>
...
Description
Adds server X using the following parameters set in the parameter tag:
servername (Optional.) Registers a JRun server under a different
name than the server property. Only used for remote JRun servers.
host Specify "localhost" or a remote machine or hostname.
port Specify a JNDI port to access a remote JRun server. If you
specify this port, you must register a remote JRun server and not a
local JRun server.
serverdir Specifies the directory under which JRun creates a new
JRun server.
initializefiles Set to true to have JRun create a directory structure
including configuration files for the new JRun server. If you set this
attribute to true and the JRun server directory already exists, JRun
overwrites the existing configuration files.
When you create a JRun server, JRun assigns unused port numbers to
avoid conflicts with other JRun servers. However, JRun does not detect
whether the ports are used by other applications.
JRun finds open ports and assigns the following for each new JRun
server:
JNDI port
External web server connector proxy
Internal web server
When JRun registers a remote JRun server, JRun does not return an
error if the JRun server does not exist.
JMC custom tags reference
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Macromedia jrun 4

Table of Contents