Previous Next vertical dots separating previous/next from contents/index/pdf

Exporting Controls into JARs

Workshop for Weblogic Platform lets you package your control classes as JAR files that can be ported and reused in other Java projects. This is the simplest way to distribute controls.

To package a Beehive control as a JAR file, select File > Export > Beehive Control JAR File.

Only control files in utility projects are available for JAR file packaging; controls in other project types are not available for export.

All Java class files in the utility project are included in the JAR file, including control interface, control implementation classes, and all other Java classes. Note that by default, only class files are included in the JAR file. To include the Java source files, place a checkmark next to Include Java source files.

To use a control in another web application:

  1. Copy the JAR file to the WEB-INF/lib folder.
  2. Add a reference to that control to a control client by right-clicking anywhere within the client's Java source file and selecting Insert > Control.
  3. A list of available controls appears. The heading Existing Project Controls lists the available controls, including controls in JAR files.

Alternately, you can:

  1. Copy the JAR file to the APP-INF/lib folder of the associated EAR project.
  2. Add a reference to that control to a control client by right-clicking anywhere within the client's Java source file and selecting Insert > Control.
  3. A list of available controls appears. The heading Existing Application Controls lists the available controls, including controls in JAR files.

As long as the JAR is inserted into the user's classpath as described above, the control will be discovered automatically by Workshop for WebLogic and property set/event handler features will be provided.

Related Topics

Apache Beehive Documentation

Building Controls

 

Skip navigation bar   Back to Top