Hello Sushma,
Well let start with the beginning...
What ODWEK and CMOD Server version do you have?
Has your program work before or not?
If yes, what has changed in your environment that now it doesn't work?
If your program doesn't work, could we have the minimum java program to do what you want to do?
Normally a minimal java program should look something like that:
ODConfig odConfig = new ODConfig();
ODServer odServer = new ODServer(odConfig);
odServer.setServerName("localhost");
odServer.setPort(1445);
odServer.setUserId("ADMIN");
odServer.setPassword("password");
odServer.initialize("/applets");
odServer.logon();
System.out.println("CMOD is alive");
odServer.logoff();
odServer.terminate();
Well any additional information would be helpful :-)
For example, do you do some CMOD connection polling? How do you do it?
etc... etc... there are tons of possibility why it might go wrong.
But my first impression would be that you didn't do a "ODServer.initialize()".
Sincerely yours,
Alessandro