Deploying your xfNetLink Java application

Follow these steps when you are ready to deploy your application at a customer site. For details on deploying the xfServerPlus side of your application, see Deploying the server.

1. Install the version of the Java Runtime Environment that is compatible with your application.
2. Install xfNetLink Java.
3. Set the classpath to point to the xfNLJava directory. See Setting the classpath.
4. Test your setup. See Testing xfNetLink Java. (Requires that xfServerPlus also be set up.)
5. Copy your JAR file and the other files required for your application to the customer’s machine.
6. (optional) Configure the xfNetLink Java properties file (or copy your version of the file to the customer’s machine). If you’re creating a web application, put the properties file in the location required by your web server. This will vary depending on which web server software and servlet container you are using. For other Java applications, put it in the same directory as the Java application.
7. If your application uses Java connection pooling, copy the pooling properties file to the location required by your application, and then run the client application to populate the pool. Running the client application ensures that the pool is ready to use when the first user requests a connection.
Note

If your Java application connects to a server with IPv6 addressing, you may need to specify the networking properties java.net.preferIPv4Stack and/or java.net.preferIPv6Addresses. For example, to use IPv6 instead of IPv4, you’d use the following:

java.net.preferIPv4Stack=false
java.net.preferIPv6Addresses=true

These properties are checked only once, at startup, so they are best set on the Java command line with the -D option. For details, consult the Oracle Java documentation