Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mroutlander

Pages: 1 2 [3]
31
OD/WEK & JAVA API / Re: ODServer code is non-responsive
« on: April 17, 2015, 12:20:54 AM »
Got it working! The problem was much simpler. I just moved the ODServer declaration to class-level (was getting a connection, so seemed appropriate) , rebuilt the code and restarted Eclipse (sometimes Eclipse does behave like an arrogant kid)

And voila! It worked.  ;D

Thanks Ed!

32
OD/WEK & JAVA API / Re: ODServer code is non-responsive
« on: April 16, 2015, 09:49:09 PM »
Thanks Ed!

While I'll surely try that, I still don't understand the reason for this behavioural difference between 'call from webapp' and 'call from standalone'  :-\

33
OD/WEK & JAVA API / ODServer code is non-responsive
« on: April 16, 2015, 04:28:46 AM »
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

Pages: 1 2 [3]