When you install IBM® Business
Automation Workflow 22.0.2, Java
Technology Edition 8 is installed along with the required version
of WebSphere® Application
Server Network Deployment.
However, if you upgraded from an earlier version of Business Automation Workflow, you
must install the Java 8 extension package and switch your version
of Java to Java 8 by using the managesdk command.
Before you begin
If you upgraded from an earlier version of Business Automation Workflow, you must install the Java 8 extension package
for each Business Automation Workflow installation in your
deployment environment before you can switch from an earlier version of Java. To install Java 8,
follow the instructions in the WebSphere Application
Server topic
Installing and uninstalling SDK Java Technology Edition Version
8.0.Before you use the managesdk command to switch Java editions,
read the WebSphere Application
Server topic managesdk command to ensure that you have met any preconditions for running
the command.
About this task
Business Automation Workflow 22.0.2 supports
only Java 8.
Java snippets, Java conditions, and Java expressions
in BPEL processes must use Java 6 syntax instead of Java 7 or Java
8 syntax.
Procedure
To switch Java editions:
- Run the managesdk -listAvailable command
to display a list of all SDK names in your environment, as described
in the managesdk command topic.
- To switch the Java edition that is used for the command-line
environment and all future profiles, run the following two commands:
install_root/bin/managesdk.sh -setCommandDefault -sdkName 1.8_64
install_root/bin/managesdk.sh -setNewProfileDefault -sdkName 1.8_64
After
you run these commands, any new profiles that you create will use
Java 8.
- If you want to switch the Java edition that is used for existing profiles,
complete the following steps:
- Stop your deployment manager, cluster members, and all
node agents.
Confirm that the deployment manager server
has stopped.
- Switch the SDK version for the deployment manager profile
by running the managesdk -enableProfile command
as shown in the following example:
install_root/bin/managesdk.sh -enableProfile -profileName DmgrProfile -sdkName 1.8_64
- Switch the Java edition that is used for the node and cluster
members. Repeat this step for each managed node of the deployment
manager.
- Restart your deployment manager.
For example,
run the following command:
install_root/bin/startManager.sh -profileName DmgrProfile
- Synchronize the managed node by running the syncNode command.
The following snippet is an example of how to run the command:
install_root/bin/syncNode.sh dmgrHostName.ibm.com 8879 -profileName Node1Profile -user AdminUser -password AdminPassword
Use
the deployment manager host name and SOAP port number for your environment.
- Run the managesdk -enableProfile command
from the bin directory of the Business Automation Workflow installation
that hosts the managed node.
The following snippet is an
example of how to run the command:
install_root/bin/managesdk.sh -enableProfile -profileName Node1Profile -sdkName 1.8_64 -user AdminUser -password AdminPassword -enableServers
- Synchronize the managed node by running the syncNode command
again, for example:
install_root/bin/syncNode.sh dmgrHostName.ibm.com 8879 -profileName Node1Profile -user AdminUser -password AdminPassword
Use
the deployment manager host name and SOAP port number for your environment.
- Validate the changes by running the managesdk -listEnabledProfileAll command
as shown in the following example:
install_root/bin/managesdk.sh -listEnabledProfileAll
CWSDK1004I: Profile DmgrProfile :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64
CWSDK1008I: Node MyCellManager01 SDK name: 1.8_64
CWSDK1009I: Server dmgr SDK name: 1.8_64
CWSDK1004I: Profile Node1Profile :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64
CWSDK1008I: Node my-Node01 SDK name: 1.8_64
CWSDK1009I: Server BPMDE.SingleCluster.Node01.0 SDK name: 1.8_64
CWSDK1009I: Server nodeagent SDK name: 1.8_64
CWSDK1001I: Successfully performed the requested managesdk task.
- If you have an Oracle database, complete the following
steps to update the Oracle JDBC providers with the appropriate Oracle
JDBC driver for the Java edition you switched to:
- Open the WebSphere administrative console.
- In the tree view, expand and then select JDBC providers.
The JDBC Providers panel opens.
- In the JDBC Providers panel, click the link of the desired Oracle
JDBC provider to open the editing panel.
- In the Class path text box, change the
following class path for the Oracle JDBC driver to the appropriate
JAR file for the Java edition that you switched to:
${ORACLE_JDBC_DRIVER_PATH}/jdbc_driver_jar
Specify
the jdbc_driver_jar as listed:
- With Oracle 12cR2,
Java 8 is supported with the ojdbc8.jar or ojdbc10.jarJDBC
drivers. Before you can use this driver, you must apply the WebSphere Application
Server 8.5.5.12 interim fix PI86830.
- Click Apply.
- Repeat the previous three steps for each of the remaining Oracle
JDBC providers.
- When you have updated the last remaining Oracle JDBC provider,
click Save to save the changes to the master
configuration.
- Stop and restart your deployment manager.
- Start your nodes and deployment environment again (in that
order).