sample-spring-boot-api-service icon indicating copy to clipboard operation
sample-spring-boot-api-service copied to clipboard

jzos in the sample

Open tucker01 opened this issue 5 years ago • 3 comments

It might make sense to include some jzos stuff in the sample? It's probably pretty common for folks to need those capabilities.

tucker01 avatar Aug 21 '19 18:08 tucker01

I think the jzos licensing thing was an issue, and why it's not included. Is that correct @plavjanik ?

dkelosky avatar Aug 21 '19 18:08 dkelosky

It makes sense. But is more complicated. We cannot use JZOS directly in an open-source project since the JZOS JAR file is a part of IBM SDK for Java on z/OS. The only way how to call is to use Java Reflection or ask developers to download it themselves as this sample does - https://github.com/zowe/spring-boot-jzos-sample. I do not like the second option because it complicates automated builds.

An internal closed-source example can be done since it is OK to have the JAR on private Artifactory.

Another option is to write/generate a wrapper for JZOS functions that would use the Java Reflection to call the real JZOS that is in z/OS Java. This would have also the benefit that we can create an interface with different implementations:

  • Calling real JZOS on z/OS
  • Mock for unit testing
  • Fake that emulates what can be done on PC so you can do more development on PC
  • Some RPC to a backend server on z/OS (or to z/OSMF REST API) so you can get real data from z/OS without the need to deploy your application to z/OS during development (uploading huge JARs from Prague to Las Vegas takes some time).

The JZOS Java API itself is not private. We can publish code that is using it. The issue is publishing the JZOS JAR that uses proprietary native interfaces.

plavjanik avatar Aug 22 '19 07:08 plavjanik

This issue has not been updated in a long time.

github-actions[bot] avatar Nov 18 '19 00:11 github-actions[bot]