Author Topic: Easy application !! not so easy ...  (Read 7639 times)

Offline S

  • Full Member
  • ***
  • Posts: 135
  • Karma: 1
Easy application !! not so easy ...
« on: November 06, 2007, 08:35:12 PM »
I am working on a java application using genji.jar libraries and j2se1.6.0
Purpose: to connect to a Tserver and register a DN. if it is logged in, then based on a input-logout that DN.
I know I have this functionality in genesys toolkit app, but I want to create this app to give to a client who can use only this functionality of logging out a DN. that's it.

now I faced with hurdles of developing it.
my app doesn't open the teleline.


[size=8pt]private void connectTeleLine() {

this.phTLine = null;
System.out.println("?open line Tserver ");
try {
System.out.println("?open line Tserver2 "); /// IT STOPS HERE... NO MESSAGES AFTER THIS... NEITHER IN MY APP NOR IN TSERVER LOGS...
this.phTLine = new PhTeleLine(new TeleServerContext(strHost,intPort), strTsName, this);
phTLine.setAppName("testApp");
phTLine.open();
System.out.println("?open line Tserver3 ");

registerDN(strTsName, "7001" );
} catch (TeleLineException e) {
System.out.println("Cannot open line Tserver --" + e.getMessage());
//e.printStackTrace();
} catch (TeleServerContextException e) {
System.out.println("Cannot get Tserver context --" + e.getMessage());

}


}[/size]




Can someone please help me fix it?
what am I missing?

Thanks
« Last Edit: November 06, 2007, 08:37:04 PM by s »

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Easy application !! not so easy ...
« Reply #1 on: November 06, 2007, 09:47:19 PM »
Hi,

I would suggest you to try older version of Java SDK. Java Desktop Toolkit has been built with JDK 1.4.2.

René

Offline S

  • Full Member
  • ***
  • Posts: 135
  • Karma: 1
Re: Easy application !! not so easy ...
« Reply #2 on: November 07, 2007, 06:35:01 PM »
did u mean Genji was built around jdk1.4.2?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Easy application !! not so easy ...
« Reply #3 on: November 07, 2007, 07:24:05 PM »
The answer is yes. You can find that information in "Desktop Toolkit 7.2 Java Developer's Guide".

René

Offline javadork

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Easy application !! not so easy ...
« Reply #4 on: November 14, 2007, 10:03:17 PM »
The genji library comes with examples, check TestSoftPhone_ansCall.java for an idea on logging that DN out.

stupiduser

  • Guest
Re: Easy application !! not so easy ...
« Reply #5 on: June 24, 2009, 11:28:10 AM »
;D :) ;) :) ;D ;D 8) :)> :)> :)> >:D >:D >:D[move][move][shadow=red,left][shadow=red,left][ftp][email][url][flash=200,200][sup][sub][tt][code][quote][list]
[li][font=Verdana][size=10pt][hr][center][left][pre][glow=red,2,300][glow=red,2,300][/glow][/glow][/pre][/left][/center][/size][/font][/li]
[li][/li]
[/list][/quote][/code][/tt][/sub][/sup][/flash][/url][/email][/ftp][/shadow][/shadow][/move][/move]

Antonio

  • Guest
Re: Easy application !! not so easy ...
« Reply #6 on: July 20, 2009, 07:14:08 PM »
Where can i get the sample code? E.J. TestSoftPhone_ansCall.java Thanks

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Easy application !! not so easy ...
« Reply #7 on: August 27, 2009, 07:50:55 AM »
Sample code is part of Genesys SDK - Platform SDK has tonns of it. What exactly are you having problem with?

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Easy application !! not so easy ...
« Reply #8 on: August 27, 2009, 07:51:29 AM »
[quote author=S link=topic=2561.msg9883#msg9883 date=1194381312]
I am working on a java application using genji.jar libraries and j2se1.6.0
Purpose: to connect to a Tserver and register a DN. if it is logged in, then based on a input-logout that DN.
I know I have this functionality in genesys toolkit app, but I want to create this app to give to a client who can use only this functionality of logging out a DN. that's it.

now I faced with hurdles of developing it.
my app doesn't open the teleline.


[size=8pt]private void connectTeleLine() {

this.phTLine = null;
System.out.println("?open line Tserver ");
try {
System.out.println("?open line Tserver2 "); /// IT STOPS HERE... NO MESSAGES AFTER THIS... NEITHER IN MY APP NOR IN TSERVER LOGS...
this.phTLine = new PhTeleLine(new TeleServerContext(strHost,intPort), strTsName, this);
phTLine.setAppName("testApp");
phTLine.open();
System.out.println("?open line Tserver3 ");

registerDN(strTsName, "7001" );
} catch (TeleLineException e) {
System.out.println("Cannot open line Tserver --" + e.getMessage());
//e.printStackTrace();
} catch (TeleServerContextException e) {
System.out.println("Cannot get Tserver context --" + e.getMessage());

}


}[/size]




Can someone please help me fix it?
what am I missing?

Thanks

[/quote]

S:

Java 1.4.2 is the answer to your prayer. I think you are using 1.6, right?