XML Configuration File

XML Configuration File

There are many benefits to activating and setting up javOnet using an XML configuration file. It simplifies distribution of your application to your team, lets you update the javOnet license, references and framework configuration more quickly, and avoids hardcoded activation and configuration details.

During the first application use, javOnet searches for, and then automatically uses the XML configuration file to activate and configure your application.

Simply name the file “javonet.xml” and place it in the root directory of your Java application.

Below you can find the full structure of the XML configuration file. Some of the tags are optional. You can read more about Javonet XML configuration file in Activating Javonet and Adding references to .NET libraries sections.

Full Javonet XML Configuration File Structure

<?xml version="1.0" encoding="ISO-8859-1" ?>
<references> <!-- optional -->
<activation> <!-- mandatory -->
    <username>YOUR NAME</username>
    <proxy> <!-- optional -->
<settings> <!-- optional (default .NET v35 and MTA) -->
    <apartmentState>STA</apartmentState> <!-- optional (default MTA) -->
    <framework>v40</framework> <!-- optional (default .NET v35) -->