The following properties and methods are common to all Java (Classic Style) proxies:
tranX TCP hostname portNumber
The corresponding ComCfg string would then be:
TCP hostname portNumber
Each supported transport has a slightly different communication string specification. In all cases the ComCfg string is expected to be the same as defined in the commcfg.properties file, but without the trancode parameter at the beginning. For more information, see the chapter “Overriding Communications Support at Execution Time” in the Distributed Processing - Overview Guide.
Note: Java never lets an applet to connect to any arbitrary server. If the applet is running in a browser, it can only connect to the servlet running on the server from where the applet was downloaded. This property is useful for testing and running an applet outside the browser environment, or for using the bean as part of a Java application. This property must be set before calling the execute method.
From an applet:
object.setServerLocation(getDocumentBase());
Or, for an application:
try { object.setServerLocation (new URL ("http://hostname"));}
catch ( malformedURL Exception e) { }
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|