Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.2.0
Div
Classe2e-refDiv

Otp
Floatingfalse

Rprde

You can directly deploy the repository of a Java service to a node instance via the E2E Bridge.

Deploying a Java Service Repository via the

...

Bridge

Only users who are member of a group, to which the role ADMIN or MODELER has been assigned, are allowed to deploy Java services. Users, who have only MODELER access rights, may only replace a Java service, if they themselves or a member of the same group deployed it.

...

After you have set the deployment options, deploy the service by clicking Upload.
If you have deployed a new service, it will be displayed in the navigation, below the node instance to which it has been deployed.

Noteinfo
iconfalse

You can only deploy Java services to the node instance the used Bridge is running on. If you have aggregated multiple node instances into a Bridge domain, you need to use the Bridge of the specific node instance you want to deploy the service to.

Structure of a Java Service Repository

A Java service repository has to be a self-contained JAR file containing also a folder META-INF/MANIFEST.MF holding the meta information of the Java Service.

...

to

...

deploy

...

Adding Information to META-INF/MANIFEST.MF

You cannot directly create or edit the MANIFEST.MF. There are two ways to add information to this file:

...

the

...

service

...

to

...

.

This approach provides you with a complete Eclipse/Ant application directory, that you can use as a starting point for your own One-JAR application. The application generator is driven by a template built into the one-jar-appgen.jar file (see one-jar-appgen).

  1. Download one-jar-appgen-0.97.jar.
  2. Generate the application, build, and run it.

    Code Block
    languagenone
    $ java -jar one-jar-appgen-0.97.jar
    Enter project path (project name is last segment): c:/tmp/test-one-jar
    Enter java package name: com.example.onejar
    $ cd c:/tmp/test-one-jar
    $ ant
    $ cd build 
    $ java -jar test-one-jar.jar
    test_one_jar main entry point, args=[]
    test_one_jar main is running
    test_one_jar OK.
    

Add source code to the src directory, library jars to the lib directory, and rebuild.

If you are using IntelliJ IDEA, you can import the project template BridgeJavaServiceTemplate.jar which uses the Gradle plugin gradle-one-jar.
Use

  • Gradle task jar for building repositories without dependencies
  • task selfContainedJar for building repositories which are depending on the Java libraries you added to the service.

Target Directory of the Deployment

Java services get deployed to a folder java_<name of the service> in the E2E Bridge data directory of the node instance. This folder contains the service repository (repository.jar) and a sub-folder logs to store the logs in.

...