× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: How to set up Library list for servlet on AS400?
  • From: "Bruce Jin" <brucej@xxxxxxxxxxxxxxxxxxxx>
  • Date: Tue, 13 Mar 2001 15:35:27 -0600

Yes, I just tried and it has not worked yet. I need to look into it more.
(I am on WAS 2 and Jai also had instructions for WAS 2)
Bruce


-----Original Message-----
From: Frances Stewart <francess@us.ibm.com>
To: JAVA400-L@midrange.com <JAVA400-L@midrange.com>
Date: Tuesday, March 13, 2001 1:59 PM
Subject: Re: How to set up Library list for servlet on AS400?


>
>Have you tried this method (Jai Goradia posted it to the WebSphere
>Application Server for iSeries newsgroup earlier in responce to Bruce's
>question):
>
>Bruce,
>        Here is what i would do. In the admin console find and click on
>your
>application server in the topology view.  On the general tab for the
>application server you will see a field where you can specify command line
>arguments for the Java Virtual Machine that will be created for use by the
>Application server. It is typically prefilled with a value for the java
>minimum heap size namely an entry like -ms32m. This field allows you to
>specify system properties for the JVM. add a property called
>java.library.path in there. So you would enter
>-Djava.library.path=/QSYS.LIB/MYLIB.LIB after separating the previous value
>in that field with a space in between(ie. -ms32m
>-Djava.library.path=/QSYS.LIB/MYLIB.LIB).  This tells the JVM in the
>application server executing  the servlets where to look for the service
>programs that the servlet code references after doing a loadLibrary() in a
>static section in the code to load the service program native code into
>memory.  Once you add this property to the command line arguments you will
>need to restart the application server for it to take effect.  Try that.
>
>
>Frances Stewart
>WebSphere Application Server for iSeries 400
>IBM Rochester
>
>
>mandy.shaw@uk.catalyst-solutions.com@midrange.com on 03/13/2001 12:10:15 PM
>
>Please respond to JAVA400-L@midrange.com
>
>Sent by:  owner-java400-l@midrange.com
>
>
>To:   JAVA400-L@midrange.com
>cc:
>Subject:  Re: How to set up Library list for servlet on AS400?
>
>
>
>I should be very interested in the answer to this one also - the only way I
>have come up with is using the WAS Admin Console to tell the WAS Web
>Application Server to run under a specific user profile that has the right
>library list on its job description. This also required me to go into the
>Ops Nav Application Admin thing to tell WAS that this user profile was
>allowed to be used for this purpose. I never actually finished testing this
>so I don't even know whether it would have worked.
>Incidentally, when you compare performance with a Toolbox call, it would be
>interesting to know whether you'd optimised the Toolbox to level 40 before
>the test or not.
>Mandy
>
>
>
>
>
>"Bruce Jin" <brucej@MRC-PRODUCTIVITY.COM> on 13/03/2001 17:26:17
>
>Please respond to JAVA400-L@midrange.com
>
>To:   JAVA400-L@midrange.com
>cc:    (bcc: Mandy Shaw/Pacific/UK)
>Subject:  Re: How to set up Library list for servlet on AS400?
>
>
>
>
>
>Hi Jim.
>
>Thanks for the response!
>I can now call JNI to RPG in Qshell or RUNJVA using java.library.path
>property.
>
>I found it is interesting that I can also add MYLIB to my library list
>before using RUNJVA or going to Qshell so that I don't have to use
>java.library.path property.
>
>Now my question is: I use JNI to call RPG in servlets which are invoked by
>WebSphere. How do I add MYLIB to the "library path" of the servlets or
>WebSphere?
>
>(BTW, it appears that JNI call is a lot faster than Toolbox program call in
>Qshell or RUNJVA)
>
>TIA
>Bruce
>
>
>-----Original Message-----
>From: Jim Mason <JEMason@compuserve.com>
>To: INTERNET:JAVA400-L@midrange.com <JAVA400-L@midrange.com>
>Date: Tuesday, March 13, 2001 10:53 AM
>Subject: How to set up Library list for servlet on AS400?
>
>
>
>Hi Bruce.
>
>For JNI, a good way to specify the library list for an RPG program is:
>
>supply the list in the java.library.path property.
>You can modify the java.library.path property in QShell and from the AS/400
>command line.
>
>From the Qshell command prompt, type in:
>java -Deja.library.path=/QSYS.LIB/MYLIB.LIB -Djava.version=1.2 myclass
>
>Or, from the AS/400 command line, type in:
>JAVA PROP((java.library.path '/QSYS.LIB/MYLIB.LIB') (java.version '1.2'))
>myclass
>
>Where /QSYS.LIB/MYLIB.LIB is the library that you wish to load using the
>'System.loadLibrary()' call,
>and myclass is the name of your Java application.
>
>see the AS/400 Java manual:
>AS/400 Developer Kit for Java for more on JNI...
>
>Other options than JNI to call RPG programs from Java include:
>1  JDBC stored procedures
>2  Java toolkit program call class
>3  Runtime.exec()
>
>JNI is very good if you need to call specific procedures in an ILE service
>program.  If you write RPG ILE service programs, you can call specific
>procedures nicely.  Any of the other methods are easier to do than JNI BUT
>only can call a program ( not a specific procedure ) passing parms and
>receiving updated parms back.
>
>JDBC stored procedures are excellent IF your RPG program should do some
>complex processing and return a simple result set of rows for a client Java
>application to process....
>
>Hope this helps...
>
>Jim Mason
>
>
>Message text written by INTERNET:JAVA400-L@midrange.com
>>
>I am trying to use JNI to call RPG programs in servlet. I put the RPG
>service program in library MYLIB. How do I include MYLIB in the "library
>path" of the servlet so that servlets can find the service program?
>
>TIA.
>
>Bruce
><
>
>+---
>| This is the JAVA/400 Mailing List!
>| To submit a new message, send your mail to JAVA400-L@midrange.com.
>| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner: joe@zappie.net
>+---
>
>+---
>| This is the JAVA/400 Mailing List!
>| To submit a new message, send your mail to JAVA400-L@midrange.com.
>| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner: joe@zappie.net
>+---
>
>
>
>      Regards,
>      Mandy Shaw
>
>      Catalyst Solutions plc
>      Kingfisher House
>      Frimley Business Park
>      Camberley
>      Surrey
>      GU16 5SG
>      UK
>
>      http://www.catalyst-solutions.com
>      Email: Mandy.Shaw@uk.catalyst-solutions.com
>
>      Telephone: +44 (0)870 166 1000
>      DDI: +44 870 166 1324
>      Facsimile: +44 870 168 3920
>      Mobile: +44 410 447966
>
>
>
>
>
>----------------------------------------------------------------------
>----------------------------------------------------------------------
>Catalyst Solutions plc.  Registered No 2918101.
>Registered @ Kingfisher House, Frimley Business Park, Frimley,
>Surrey. GU16 5SG   U.K.
>
>NOTICE:
>This message is intended only for the named addressee(s) and may
>contain confidential and/or privileged information. If you are not the
>named addressee you should not disseminate, copy or take any action
>or place any reliance on it. If you have received this message in error
>please notify postmaster@catalyst-solutions.com and delete the message
>and any attachments accompanying it immediately.
>----------------------------------------------------------------------
>
>
>
>+---
>| This is the JAVA/400 Mailing List!
>| To submit a new message, send your mail to JAVA400-L@midrange.com.
>| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner: joe@zappie.net
>+---

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.