Is there a was to create the url config in my java program instead of using the admin gui.
I know I can start and stop the server in my java application but I need the flexability to dynamically create a url config without using the admin gui.
Something like this.
admin.createNewConfig(UrlName, UrlInfo, AutoStart, LogInfo, LogTo);
admin.startServer(UrlName);
admin.stopServer(UrlName);
Thanks,
Brett Burch
|
Now there is no such function to dynamically create a url config.
You can try the follows code,it should work normal.
String propFile = System.getProperty("user.home") + java.io.File.separator + "urlconfig.properties";
Properties prop=new Properties();
prop.load(new java.io.FileInputStream(assignedConfigsFile));
prop.put(UrlName, UrlInfo);
prop.put("UrlName_autorun",AutoStart?"true" : "false");
prop.put("UrlName_log",LogInfo?"true" : "false");
prop.put("UrlName_logfile",LogTo?"true" : "false");
prop.store(new java.io.FileOutputStream(filename), "");
new Admin().startServer(UrlName);
|
In the next JDBC package,we will supply such a method.
|
>I know I know I can start and stop the server in my java application
BTW, you can use embedded url without running Server if you haven't remote client to access your data.
|