Connecting to a non-default port

If you need to connect to the non-default port of the Content Manager OnDemand server, you use the ODServer.setPort() API call immediately before the logon in your ODWEK application.

About this task

In some situations, you might need to access a non-default port. For example, you might have two instances of the Content Manager OnDemand server. One instance uses the default port, and another uses a different port. Unless you configure your system properly, when you run your Java program, you see the following error: "A connection cannot be established to the instance2 server".

To resolve this situation, use the ODServer.setPort() API call immediately before the logon within your ODWEK application.