Question
Task remote execution
How to use com.infoengine.au.NamingService java class without ie.properties file?
I whant use NamingService for remote invoke InfoEngine task from applet, anybody know how I can do this?
As temporary solution I use this code in applet:
FileWorker f = new FileWorker("ie.properties");
f.openForWrite();
f.addLine("seeAlso=ldap://cn=Manager:pwd@host/cn=configuration,cn=Windchill_9.0,o=ptc");
f.addLine("host.namingService.directoryProvider=ldap://cn=Manager:pwd@w9.elm.ru");
f.addLine("host.Windchill.secret.text=mySecret");
f.addLine("host.Windchill.secret.text2=mySecret");
f.close();
And use generated file in constructor:
NamingService namingService = NamingService.newInstance(
"host.namingService", "ie.properties");
I whant use NamingService for remote invoke InfoEngine task from applet, anybody know how I can do this?
As temporary solution I use this code in applet:
FileWorker f = new FileWorker("ie.properties");
f.openForWrite();
f.addLine("seeAlso=ldap://cn=Manager:pwd@host/cn=configuration,cn=Windchill_9.0,o=ptc");
f.addLine("host.namingService.directoryProvider=ldap://cn=Manager:pwd@w9.elm.ru");
f.addLine("host.Windchill.secret.text=mySecret");
f.addLine("host.Windchill.secret.text2=mySecret");
f.close();
And use generated file in constructor:
NamingService namingService = NamingService.newInstance(
"host.namingService", "ie.properties");

