You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

When installing the E2E Bridge, all additional libraries (E2E SQL Libraries, E2E SAP Libraries, and E2E Java Libraries) are being installed as well. After a successful installation, the Bridge is capable to use imported Java classes.
In some cases, you may want the E2E Runtime to use a different Java version to run deployed services. This chapter describes how to change Java adapter preferences to run xUML services using Java classes with a particular Java version.

Preconditions

the E2E Bridge has been successfully installed. When running the Bridge in server mode (as opposed to workstation mode), the E2E Bridge node instance has to be a member of an the E2E Bridge domain (see Installation Modes and BRIDGE Domain).
The developing environment for xUML services (E2E Builder for MagicDraw) is based on Java. Thus on the Bridge, compiled and deployed xUML services must be run with the same or higher Java version. The Java versions of released Builder and Bridge versions are always matching, unless you changed MagicDraw to run with another Java version.

Running MagicDraw and xUML services on the E2E Bridge with not matching Java versions will result in unpredictable behavior of the deployed xUML services.

You can check the Java versions of MagicDraw and the E2E Bridge to ensure they are matching.

In MagicDraw, navigate to Help > About MagicDraw. Switching to the tab Environment, you will find the Version of the used Java virtual machine.

In the navigation, select the Bridge item of the node instance you want to check the Java preferences of (in this example e2ebridge.e2e.ch) and switch to tab Preferences.
Select the Java Adapter from the drop down list.

The Java Home directory shows the version of the Java Runtime that is used by the E2E xUML Runtime (see highlighted area above). The Java versions of MagicDraw and the E2E Bridge are matching, as both use the same version 1.6.x.

In the Runtime Components section of the Runtime tab, you will find the version of the Java Runtime that is used by the E2E Bridge (see highlighted area below). This version may differ from the Java version the E2E xUML Runtime is using!

Java Runtime Environment Versions (32 or 64 bit)

The Java Runtime Environment must have the same number of bits as the E2E xUML Runtime.

E2E RuntimeJava Runtime Environment
Windows 32-bit32-bit
Linux 32-bit32-bit
Windows 64-bit64-bit
Linux 64-bit64-bit

Changing the Preferences of the Java Adapter

In a browser, open the Web-based user interface of the E2E Bridge of the system, on which the Bridge is installed (see  Checking the Installation). Enter a user id and password of a user with administration rights (the pre-defined user admin, for instance).
The welcome page is displayed.

In the Navigation, select the Bridge item of the node instance you want to define the Java preferences for (in this example e2ebridge.e2e.ch) and switch to tab Preferences.
In the drop down list, select the Java Adapter.

After installation of the Bridge, the Java Virtual Machine that is used by the Bridge is initially defined.

You may now change the Java Home directory.

KeyValue

JAVA_HOME

Path to the Java Runtime, e.g.
C:\E2E_BRIDGE_PROG\j2re-1.6.30\win32-64

Linux: /opt/e2e_bridge_prog/j2re-1.6.0/linux-64

We strongly recommend to use no Java Runtime older than the one that has been installed with the E2E Bridge. This ensures that deployed xUML services will run properly.
Using Windows, you can copy the path from Windows Explorer (default directory C:\E2E_BRIDGE_PROG\j2re-x.x.x\win32-64).

  • No labels