This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 3, 2011, 3:07 PM
7 Posts

Using existing jars in NSF

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: jars
  • Replies: 9
Hi,
 
i read this two articels. 
 
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/reuse_web_services_xpage.htm
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/reuse_java_xpage.htm
 
I have added the AXIS jars to my project.
I have implemented a Webservice by this way.
 
My problem is the performace, i can measure the time the webservice call needs.
 
And it seem to be the loading time of the jars which consumes much time ? 
Do domino load the jars every time I call the XPage ?
 
Is there a better way the integrate jars?
Maybe like jars are integrated in the Extension Library?  

Nov 4, 2011, 9:15 AM
54 Posts
Re: Using existing jars in NSF
Have you tried to add the JARs directly to application's classpath? See Java Perspective and Configure build path?
how have you added these JARs to your application?
 
As far as I know from Java Domino  Agent world, there every JAR were loaded on each request. Not sure how they (JARs) act as XPages resources.
 
 
Nov 4, 2011, 9:50 AM
7 Posts
Re: Using existing jars in NSF
Have you tried to add the JARs directly to application's classpath? See Java Perspective and Configure build path?
how have you added these JARs to your application?
Yes I did.
 
I put my jars to the WebContent\lib Folder. And then include the jars in Properties/JavaBuildPath/Libraries then Add jars. 
 
This solution works for me, but it's to slow because the jars are loaded every time I call the XPage. 
Nov 4, 2011, 10:20 AM
272 Posts
Re: Using existing jars in NSF
Hi,
 
what if you add the jars to the jvm\lib\ext folder of the domino server?
 
Sven
Nov 4, 2011, 11:15 AM
54 Posts
Re: Using existing jars in NSF
It's unfortunate that this behaves like this... 
 
Have you tried some other WebService clients? AXIS is OK but not the best one. Which one is the best? Don't know but XFire is quite good and fast (http://xfire.codehaus.org/)
 
Then there's always the possibility that you just code the WebService request using Java (java.net package classes). Here's one (old) article that I once used.
http://www.collaborationseminar.com/eview/volr6.nsf/0/1AF49D3658E834C78525723A006E7D08/$File/003-024%20Calhoun_NovDec06_Web.pdf
See the code part where they create the Soap client.
 
I know... a lot of code which should be handled by a framework but .... atleast one more option to try.
Nov 4, 2011, 12:41 PM
7 Posts
Re: Using existing jars in NSF
@Sven
 
jvm\lib\ext folder is to use this jars in agent java only isn't ?
 
@Rami Muurimaki

the easiest way would be, that i can use axis classes  which allready within the domino
but the Service class have no public constructors
 
the strange thing for me is ... i put the same webservice call two times on a XPage
and i measure the time which the first call consumes and then the second
the second call is much faster but the same call (and i can measure the time which the webservice offering system consumes, it's the same)
 
so for me it's seems like the jars are loaded with every call of the xpage
Nov 4, 2011, 1:49 PM
272 Posts
Re: Using existing jars in NSF
No. Jars in this folder are usable by XPages.
Nov 4, 2011, 1:22 PM
54 Posts
Re: Using existing jars in NSF
I agree on the JAR loading.
I've struggled with this problem many times. In heavy trafic Domino get exthausted by the JAR loading (= memory usage). Event recycling didn't help if I remember correctly.
 
Nov 4, 2011, 2:59 PM
7 Posts
Re: Using existing jars in NSF
@Sven
 
okay will test this on monday :P , thanks for your response  and have a nice weekend
Nov 8, 2011, 7:37 AM
7 Posts
Re: Using existing jars in NSF
@Sven
 
i tested the javm/ext/lib folder i think your right ... this is the right place for my jars 
 
but i get in trouble with some other libraries which already contains classes which I need but not all :P 
 
in my case it's the common-logging.jar 
 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal