0

I have a task which needs to place a random 8-digit numeric token, rtok, in a container of the process (call it TOKEN) and notify user a URL where they can go to and tick an option. The URL should be of the form https://zeuszos.edu.ihost.com:8005/afcheck/customer/she00nn?proc=AFCnnnnnnnn&token=rtok

The AFCnnnnnnnn, the nnnnnnnn is the random 8-digit numeric token. I have gone through this tutorial but it doesn't help much. Can anyone suggest anything? Thanks.

Tri Nguyen
  • 1,688
  • 3
  • 18
  • 46

1 Answers1

1

If you are looking to create a web app in CICS, then the CICS Liberty support, which enables the JEE6 & 7 Web profile and is a lot easier (and more standard) than using JCICS web and document classes, which is what the old examples.web.Sample1 one uses. Liberty is supported in CICS since CICS TS V5.1 See this video for some high level info Architecting Java solutions for CICS.

You can find information on developing a simple Liberty web app here on our CICS developer center and there is a tutorial here on using the JCICS APIs

There is also a suite of sample Liberty apps here on our CICSDev GitHub.

Let us know how you get on.

  • Hi Phil, you are actually the author of the article. I'm provided this http://upfile.mobi/IgWM0kaJP3f class to fetch the data. However everytime I tried to fetch data using `String CONTAINER = bts.get_process_container(PROCESS_NAME);` I always got an error. `Exception in thread "main" java.lang.UnsatisfiedLinkError: com.ibm.cics.server.Task.getCommonData()V`. How can I fix that? – Tri Nguyen Dec 06 '17 at 14:51
  • ```java.lang.UnsatisfiedLinkError: com.ibm.cics.server.Task.getCommonData() ``` signifies that your app failed to load the JCICS native library, when using the JCICS Task class. This sort of error usually means you are not running on a CICS enabled thread in the JVM. What type of CICS JVM server are you using, and how are you invoking your Java program? – Phil Wakelin Dec 07 '17 at 08:35
  • I set Target Platform as CICS TS 5.1. – Tri Nguyen Dec 07 '17 at 15:14
  • The Target Platform sets the plugins in your Eclipse that you are developing for, so that looks good. However, question is how is your Java class BTS.java invoked within the CICS runtime, is it via an EXEC CICS LINK or via a JNI call or? – Phil Wakelin Dec 12 '17 at 12:36
  • I sorted it out anyway. I have to use the zosexplorer instead of the normal Eclipse. – Tri Nguyen Dec 12 '17 at 16:45
  • OK good to hear it, you can either use standard Eclipse and install the CICS Explorer SDK into this, or you can use the z/OS Explorer which has everything built into it. The following [site](https://developer.ibm.com/mainframe/products/downloads/) should give you access to whichever download you need. – Phil Wakelin Dec 12 '17 at 16:54