IBM Z and LinuxONE Software

  • 1.  reading from file using Resource associations

    Posted Thu August 20, 2020 09:11 AM

    I am trying to read CSV file using this:

    https://www.ibm.com/support/knowledgecenter/en/SSMQ79_9.5.1/com.ibm.egl.pg.doc/topics/pegl_core_fileio_tsk.html

    and everything is doing fine as long as I run app locally, but when I deploy app to web server

    (IBM WebSphere Application Server 8.5.5.4)

    app is looking for CVS file on server computer, not on local (user)

    is there any way to do this, this is my scenario

    - user copy CSV file on his PC

    - user start app (on web server) and read that file, and do something with data...

    Thanks, Sasa


    #Support
    #HCLRational
    #SupportMigration


  • 2.  RE: reading from file using Resource associations

    Posted Tue September 08, 2020 08:41 AM

    Hi Sasa,

    This should work if the resourceAssociation/systemName points to file that exists, which must be the case if it works running locally.

    I assume the WAS instance is running on a remote location, what is the exact error ie "file not found"?

    You can run a Java runtime trace to give more output by adding the following properties/variables in the rununit.properties (non-J2EE) or web.xml (J2EE):

    vgj.trace.type=-1

    vgj.trace.device.option=0

    Which will be written to stdout (console).

    It may be you have found a defect that needs investigation by my RBD support team so you are most welcome to raise a support ticket and we would be happy to investigate.

    For the support ticket make sure to confirm the full RBD version, the KC entry indicates 9.5.1 but that stream is now up to 9.5.1.2 level, and add the full project files including Build descriptor with the reference to the RA so its runnable, plus add the extended trace file as advised above.

    Mladen has raised many cases in the past to advise as to the process and if you add the number here I will pick up the new ticket myself.

    Thanks and Regards

    Mark

    Mark Hall

    HCL Technologies

    RBD L2 Support


    #Support
    #HCLRational
    #SupportMigration