Jar Registration

Jar Registration was removed in BBj 23.00.

Description

The JarRegistrar class allows BBj developers to register JARs of Java classes so that their users can run BBj programs in which those classes are invoked as ClientObjects. If a ClientObject from an unregistered JAR is used in a BBj session, the user will see a periodic nag message for the remainder of that session. This nag message also occurs if the JAR is registered for a version of BBj later than the user license version. For example, a JAR registered for BBj 9.x will work with a BBj 9.x or 10.x license, but will not work with a BBj 8.x license.

How to invoke the JarRegistration Web Service

The JarRegistration web service can be invoked in three ways:

  1. From the command line

  2. From the command line invoking the JAR

  3. From the registerJar method of the JarRegistrar class.

1. JarRegistrar can be invoked by entering the following line at the command line:

Note: This method requires BBjIndex.jar to be included in the classpath for successful execution.

java -cp "JarRegistrationServiceClient.jar:BBjIndex.jar" com.basis.utilities.jarreg.client.JarRegistrar <path to input jar> <path to output jar>

Note: This method is no longer valid and has been removed.

2. Jar Registration Service Client can be invoked by entering from the command line invoking the Jar:

java -jar JarRegistrationServiceClient.jar <source jar> <destination jar>

3. The following example demonstrates how to use the registerJar method in BBj:

use com.basis.utilities.jarreg.client.JarRegistrar

JarRegistrar.registerJar("c:\jars\myAPI.jar",
: "c:\temp\myAPI_registered.jar")