问题
I made a change to an OSGi JVM Profile by adding a library to LIBPATH_SUFFIX
. After that I discarded my JVM server and reinstalled it, but the changes are not getting reflected. Is there a secondary step that I should have taken care of after making the changes to the JVM Profile file?
回答1:
If you want to add DB2 JDBC type2 driver support to an OSGi JVM server you will need to do the following:
- Add the DB2 libraries to the CICS STEPLIB
Create/install a CICS DB2CONN resource and ensure this works
Add the DB2 JDBC driver and license JARs to the JVM server middleware classpath using the OSGI_BUNDLES parameter. Note these JARs are already packaged as OSGi bundles.
- Add the DB2 shared libs to the JVM server LIBPATH_SUFFIX
- Disable/enable the JVM server to restart it
For reference see
- CICS TS Knowledge Center, see this example
- Redbook SG248038, Section 9.4
If you need to debug the actual value of the JVM server libpath, the best tool is the IBM Health Center, and the Environment perspective will show the java.library.path in use in a JVM, see this tutorial
来源:https://stackoverflow.com/questions/41595040/changes-made-to-jvm-profile-in-cics-are-not-being-reflected-in-the-runtime