Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: persmen on April 25, 2008, 03:34:50 PM

Title: GENJI and Desktop application
Post by: persmen on April 25, 2008, 03:34:50 PM
Hi everybody.

i have sample code like next;
    public void ConnectionTest(){
      TeleServerContext cnt;
      TeleLine          tl;
      try{
          // TServer IP and Port
          cnt=new TeleServerContext(new String("10.51.2.170"), 3000);
      }
      catch(TeleServerContextException e){
          javax.swing.JOptionPane.showMessageDialog(null, e.toString());
          return;
      }
      try{
          tl=new TeleLine(cnt);
          tl.setAppName("FONOBANK");
          tl.setAppPasswd(null);
          tl.open();
      }
      // Error description Cannot open socket
      catch(TeleLineException e){
          javax.swing.JOptionPane.showMessageDialog(null, e.toString()+"\n"+e.getStackTrace().toString());
          return;
      }
      javax.swing.JOptionPane.showMessageDialog(null, "Server connected");
    }


so im using Netbeans for IDE and Java 1.6.0 for JDK
In tl.Open() line application wait about 1 minute and throw and exception. Exception Message is
[u][b]Genesys.JTele.TeleLineexception: Cannot open socket: Connection Reset[/b][/u]
I think this must be simple. But i dont know what is the problem. Can anybody help.

Title: Re: GENJI and Desktop application
Post by: cavagnaro on April 25, 2008, 04:02:03 PM
Are you sure TServer port is 3000? Check it on CME
Title: Re: GENJI and Desktop application
Post by: persmen on May 28, 2008, 06:37:47 AM
Ok. I found the problem. (All ports and definitions ok by the way.)
I'm not looking too detailed but problem is in new Java Desktop Apllication framework.  :o
Now im using standart swing framework and problem is gone.
For your information.
Title: Re: GENJI and Desktop application
Post by: victor on June 27, 2008, 07:34:51 AM
Uhm, why would you want to use SWING?