Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic CitrixServer setting

Status
Not open for further replies.

freeeek

Programmer
May 7, 2003
8
SK
hello everybody,
i've integrated NFuse 1.7 in a web application which runs on Tomcat 4.1.x (Linux) and Sun ONE 7 (Solaris).
everything works fine until i try to set the NFuse_CitrixServer property dynamically.
if i set the NFuse_CitrixServer IP address and NFuse_CitrixServerPort statically in NFuse.conf file i get connection to the MetaFrame server and can launch applications. but when i comment the properties in NFuse.conf and try to set them during the initialization via
[tt]
CitrixWireGateway gateway = new CitrixWireGateway();
gateway.initialize( credentials, citrixServer, transport, port );[/tt]

i don't get a connection.

does someone know how to make this work? must there be some special configuration entry?

thanx a lot in advance
 
hello all,
since i didn't get any reply and couldn't find any solution to my problem i had to solve it myself ;-)

i discovered that my description of the problem wasn't completely correct. after initializing the
Code:
CitrixWireGateway
object with dynamic values i actually got the connection, but the
Code:
TemplateParser
object, which uses the values from NFuse.conf static configuration file, couldn't connect to the server since the
Code:
NFuse_CitrixServer
and
Code:
NFuse_CitrixServerPort
entries were missing.

the solution is:
[ol]
[li]intialize the
Code:
CitrixWireGateway
object with dynamic values via
Code:
CitrixWireGateway gateway = new CitrixWireGateway();
gateway.initialize( credentials, citrixServer, transport, port );
[/li]
[li]set the
Code:
TemplateParser
properties!
Code:
...
parser = new TemplateParser();
parser.setSingleSessionField("NFuse_CitrixServer", server );
parser.setSingleSessionField("NFuse_CitrixServerPort", 
String.valueOf( port ) );
parser.setSingleSessionField("NFuse_Transport", transport );
...
parser.Parse();
[/li]
[li]if you need to access MetaFrame server via CSG and STA and want to set also theese servers dynamically you need to specify additional
Code:
TemplateParser
session fields:
Code:
parser.setSingleSessionField("NFuse_CSG_Server", csgServer);
parser.setSingleSessionField("NFuse_CSG_ServerPort", String.valueOf( csgPort ));
parser.setSingleSessionField("NFuse_CSG_STA_URL1",
staFQDN); // 1 STA server!!
parser.setSingleSessionField("NFuse_CSG_Enable",
"on");
[/li]

freek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top