× 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.



I am a bit perplexed by the following, hopefully someone on the list can
provide some insight:

For reasons best ignored for now, I need to write logging entries from my
code to the Joblog.

Consulting the javadocs for the AS400 object indicates that the no-arg
constructor  - 
"...has the same effect as using localhost for the system name, *CURRENT for
the user ID, and *CURRENT for the password."

The docs for the static WriteMessage() methods indicates -
"If the system specifies localhost, the message is written to the job log of
the process from which this method is called. Otherwise the message is
written to the QZRCSRVS job."

The code is executing within the OS/400 JVM on V5R1 using jt400native.jar.
The no-arg constructor is used to instantiate the AS400 object which in turn
is passed to the appropriate WriteMessage() method.

I would expect the entries to be written to the Joblog of the job that is
running the JVM but they always appear only in the JobLog of a QZRCSRVS job.
Nothing else in my code would necessitate the use of the QZRCSRVS job
(removing my logging statements causes it not to appear).

Could it be that since I am using the native optimizations provided by
jt400native.jar?

 
Thanks,
WRK

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.