|
"libraries": Specifies one or more libraries thathttp://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.toolbox.doc/jdbcliblistproperty.htm
you want to add to
*or replace* _the library list_ of the server job;
List of server
libraries, separated by _commas_ or _spaces_;
default: "*LIBL"; When you
do not use *LIBL, the specified libraries *replace*
the current library
list of the server job;
http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/topic/com.ibm.etools.iseries.toolbox.doc/jdbcliblistproperty.htm#jdbcliblistproperty
I was not aware of the implied behavior as noted
in the last
statement above about *replace*.
As far as I know, the comma-separated list is
used to prepend the
list with a single comma, to effect the *replace*.
See also:
7. Library property specified, _list starts with
a comma_; System
Naming: No default schema, all libraries on list
searched, list replaces
job's library list.
http://www-03.ibm.com/systems/i/software/toolbox/faqjdbc.html
As such, I suggest trying to replace the current
attempt:
libraries=,QTEMP,MYLIB,QGPL,MYLIB2
IMO the documentation is very poor. I find it
disturbing that
something as simple as the concept of a library
list, is described in a
JDBC FAQ as "complicated." Implying that the
"behavior of library lists
on an i5/OS system is quite complicated." To me,
the complication is in
their poor implementation and *very vague*
documentation. So unclear,
they have to have a long entry in a separate FAQ
document;
Even more
disturbing, is that the FAQ is basically just a
repeat of the already
poorly worded documentation.
I would open a defect issue with your service
provider. Given the
stated results, the "libraries" property appears not
to work as it is
documented: "When you do not use *LIBL, the
specified libraries replace
the current library list of the server job." If
that quoted
documentation is correct, then the traced results
should not show any
ADDLIBLE errors, because the implementation should
be, instead of any
ADDLIBLE activity, one request to:
*SYSTEM/CHGLIBL ( QTEMP MYLIB QGPL MYLIB2 )
CURLIB(*SAME)
Regards, Chuck
--
All comments provided "as is" with no warranties
of any kind
whatsoever and may not represent positions,
strategies, nor views of my
employer
Ashish Kulkarni wrote:
I have a java program which runs on AS400, Icreate a JDBC connection
using a URL as belowformat=iso;time format=hms;
"jdbc:db2:*local/;naming=system;date
prompt=false;transaction isolation=readcommitted;
libraries=QTEMP MYLIB QGPL MYLIB2";profile, then MYLIB
But if the local user has library MYLIB is his job
is not added again in the sequence I specify inlibraries, but it is
at end, so the JDBC connection library list lookslike
QTEMP QGPL MYLIB2 MYLIB, which causes issues ifthere are some files
in both the libraries. I did add trace=true anderrors=full to trace
it, it seems that ADDLIBLE command is used to addthe library, and this
command fails when library is already present. Isthis the way this is
suppose to work, the API documentation says"Specifies one or more
libraries that you want to add to or replace thelibrary list of the
server job" But some how it is not working as Iwould like to set the
library list. Any ideas?
--
This is the Java Programming on and around the
iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the
archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
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.