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



Is it possible to reference jar files that reside outside of the
SQLLIB/Function folder in a Java Stored Procedure - i.e. client jar files
from a third party package such as WAS/JBoss? 

I have tried setting the environment variable CLASSPATH both through
WRKENVVAR and the SystemDefault.properties file. The classpath property can
then be retrieved in the Stored Procedure and it is being displayed as
expected, however NoClassDefFound errors are still thrown. (The classpath is
definitely in the correct format and the jar file definitely exists in the
location specified)

If I extract the jar file into SQLLib/Function the errors are not thrown -
but I don't want to have to extract every jar file that I ever need to
reference from a Java Stored Procedure into this folder. There are further
dependencies for the functionality that I am working with for example and I
can see things becoming very messy very quickly. 

(Incidentally, when I try and install the JBoss client jar file
jbossall-client.jar into DB2 using the SQLJ/INSTALL_JAR stored procedure, I
receive an error SQL0445 "Value of parameter  in procedure  in  too long"
(the parameters passed in are within the sizes that SQLJ/INSTALL_JAR has
defined for it in QSYS2/SYSPARMS...?) - I think there is an internal SQL
system error here. 

Any ideas? Are there any environment variables/system values that I need to
set to make DB2 use the current classpath?

Cheers,
Stu


Stuart Bramley 
Senior Technical Developer 
Skandia Life::GroupIT 
Southampton 
t: 023 80 72 64 29 e: stu.bramley@xxxxxxxxxxxxx 
IBM Certified Specialist
If you are not the intended recipient, please notify the sender by return email 
and then delete the message from your computer. The Skandia UK Group reserves 
the right to monitor e-mail communications through its networks.

No contract may be concluded on behalf of the Skandia UK Group by email.

Skandia Life Assurance (Holdings) Limited Skandia Life Assurance Company 
Limited Skandia MultiFUNDS Limited, Skandia Investment Management Limited.

Registered Nos: 1606702, 1363932, 1680071, 4227837, England
Registered Office: Skandia House, Portland Terrace, Southampton SO14
7EJ, United Kingdom

Royal Skandia Life Assurance Limited Registered No : 24916 Isle of Man
Registered Office: Skandia House, King Edward Road, Onchan, Isle of Man IM99 
1NU, British Isles

Skandia Life Assurance Company Limited, Skandia MultiFUNDS Limited, Skandia 
Investment Management Limited and Royal Skandia Life Assurance Limited are 
authorised and regulated by the Financial Services Authority for UK
investment business.

Internet: www.skandia.co.uk

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.