Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
Creating a URL Config Programmatically
Brett Burch
2006-08-09 11:31:39.0
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
Re:Creating a URL Config Programmatically
HXTT Support
2006-08-10 08:30:35.0
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);
Re:Re:Creating a URL Config Programmatically
HXTT Support
2006-08-10 08:31:45.0
In the next JDBC package,we will supply such a method.
Re:Re:Re:Creating a URL Config Programmatically
HXTT Support
2006-08-11 22:25:28.0
>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.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap