Hi all,
I have been facing a very typical problem. When connecting to a remote CMOD server from a standalone program, I am able to get through but when the same is being tried through a web application, it gets stuck.
ODServer instance never gets created and of course never gets initialized.
Code connecting to OD (works just fine in the standalone program):
odConfig=new ODConfig();
odServer = new ODServer(odConfig);
odServer.initialize("RetrieveODDoc.java" );
System.out.println( "Logging on to the CMOD server...." );
odServer.setPort( 1445);
odServer.setServerName( "ServerName" );
odServer.setUserId( "Username" );
odServer.setPassword( "Password" );
odServer.setConnectType(ODConstant.CONNECT_TYPE_TCPIP);
odServer.logon(); On the web application side, it just doesn't respond
odConfig = new ODConfig();
System.out.println("OD Config is fine");
odServer = new ODServer(odConfig);
System.out.println("If you see this, ODServer is fine");
It just doesn't seem to get past line 2.
Env. details: ODWEK 9.0.0.0, Java 1.7.0_65 (64-bit) , Win 7 Enterpise 64-bit client, Win Server 2008 R2 Enterprise (64-bit) CMOD Server, Eclipse Juno 64-bit (IDE)
Any assistance will be much appreciated.
Thanks in advance