Easy application !! not so easy ...

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.

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());
		
	}
	
	
}

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

Thanks

Hi,

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

René

1 Like

did u mean Genji was built around jdk1.4.2?

The answer is yes. You can find that information in “Desktop Toolkit 7.2 Java Developer’s Guide”.

René

3 Likes

The genji library comes with examples, check TestSoftPhone_ansCall.java for an idea on logging that DN out.

;D :slight_smile: :wink: :slight_smile: ;D ;D 8) :)> :)> :)> >:smiley: >:smiley: >:D[move][shadow=red,left][shadow=red,left][url][url]`

<blockquote>- <hr/>

[glow=red,2,300][/glow]


- </blockquote>

`[/url][/url][/shadow][/shadow][/move]

Where can i get the sample code? E.J. TestSoftPhone_ansCall.java Thanks

Sample code is part of Genesys SDK - Platform SDK has tonns of it. What exactly are you having problem with?

S:

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

1 Like