Accessing a project on Studio’s local cluster from a remote machine
From SAP ESP Studio, projects can be deployed to run on local or remote clusters. ESP Studio manages a special “local cluster” making it easy for a developer to work on their local machine by automating the start/stop of the cluster automatically. This local cluster is typically used by a single developer, and is not accessible to other machines by default.
Occasionally, a colleague may want to access a project you are developing on your Studio-local cluster, or you may want to test access of an ESP client application on a remote machine to your local project. Although this isn’t possible with the out-of-the-box configuration, Studio’s local cluster configuration can easily be changed to support remote access.
The cluster configuration files used to start Studio’s local cluster are located in the %ESP_HOME/studio/clustercfg directory. In that directory is a localnode.xml file and in that files is a ESP_HOSTNAME macro (see below). Upon installation, this macro is set to localhost. To make Studio’s local projects accessible to other machines, replace localhost with a hostname or IP address. The hostname may need to be fully-qualified depending on your network configuration. Once this change is made, projects you start on Studio’s local cluster will be accessible to any machines on the network that: a) can access your machine on the network, and b) can provide the credentials you specified upon startup of the cluster.
<Node xmlns:xi=”http://www.w3.org/2001/XInclude“>
<Macros>
<Macro name=”ESP_HOME”>C:\ESP5.1SP04\ESP-5_1</Macro>
<Macro name=”ESP_CLUSTER_VERSION”>0.1</Macro>
<!–<Macro name=”ESP_HOSTNAME”>localhost</Macro>–>
<Macro name=”ESP_HOSTNAME”>MYHOSTNAME.sap.corp</Macro>
<Macro name=”ESP_STORAGE”>${ESP_HOME}/storage</Macro>
</Macros>
<Name>node1</Name>
<Controller enabled=”true”>
<ApplicationTypes>
<ApplicationType name=”project” enabled=”true”>
<Class>com.sybase.esp.cluster.plugins.apptypes.Project</Class>
<StandardStreamLog enabled=”true” />
<Properties>
<Property name=”ESP_HOME”>${ESP_HOME}</Property>
<Property name=”hostname”>${ESP_HOSTNAME}</Property>
<Property name=”services-file”>${ESP_HOME}/bin/service.xml</Property>
<Property name=”base-directory”>C:\ESP5.1SP04\workspace</Property>
<Property name=”debug-level”>4</Property>
</Properties>
</ApplicationType>
<ApplicationType name=”ha_project” enabled=”true”>
<Class>com.sybase.esp.cluster.plugins.apptypes.HaProject</Class>
<StandardStreamLog enabled=”true” />
<Properties>
<Property name=”ESP_HOME”>${ESP_HOME}</Property>
<Property name=”hostname”>${ESP_HOSTNAME}</Property>
<Property name=”services-file”>${ESP_HOME}/bin/service.xml</Property>
<Property name=”base-directory”>C:\ESP5.1SP04\workspace</Property>
<Property name=”debug-level”>4</Property>
</Properties>
</ApplicationType>
</ApplicationTypes>
</Controller>
<Manager enabled=”true”/>
<Rpc>
<Host>${ESP_HOSTNAME}</Host>
<Port>9786</Port>
</Rpc>
<Cache>
<Port>19066</Port>
<Name>cache1</Name>
<Password>cache-password</Password>
<Managers enabled=”true”>
<Manager>localhost:19066</Manager>
</Managers>
<Multicast enabled=”false”>
</Multicast>
</Cache>
<Security>
<Csi>
<File>${ESP_HOME}/studio/clustercfg/csi_cluster.xml</File>
</Csi>
<Keystore>
<Type>JKS</Type>
<File>C:\ESP5.1SP04\ESP-5_1\security\keystore_rsa.jks</File>
<Password>TdN90n</Password>
</Keystore>
</Security>
</Node>
If multiple developers will be interacting with a project you will want to consider starting a cluster outside of ESP Studio. Please see Starting a Node or Cluster for information on starting a cluster and Connecting to a Remote Cluster for information on accessing an external cluster from ESP Studio.
.