Following problem, hope someone can help us:
We have a testserver with three test-databases for each of our current
services (production servers are one machine per service). Having
three databse on one server worked without a problem (except from some
performance-issues...) till we created stored procedures with same
name (and different parameters) in two of the databases.
We use one .jar with the procedure's name to encapsulate all files
necessary for one procedure. But because DB2 only arranges the files
per user (in sqllib/function/jar/(username)) and NOT per database,
installing one procedure would overwrite the other. So I changed our
batch to install procedures so it would append the database's name to
the .jar, believing that this would solve the problem. Obviuosly it
did not. Although there are now individual .jar's for each database,
db2 seems to always load the class from the .jar first installed. So
if there are two .jars containing the same classes, there will only
one be used, no matter what .jar you specified. This undermines imo
the whole idea of having .jar files, because the java interpreter
should load exactly and only the classes of the .jar defined in CREATE
PROCEDURE.
Now does anybody know if this is a known issue or if there is somthing
wrong with our configuration. Has anyone a easy solution to this? Or
do we have to give a unique name to all our classes used for sps from
now on?
Thanks for your support
Janick