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



May 12, 2011, 8:05 AM
11 Posts

SSJS & Java managed beans are great, but how to use in lotusscript?

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: java,lotusscript
  • Replies: 2
I have written some Java beans that I use in Xpages using SSJS. This is all working great.
Is it possible to use these Java classes in Lotusscript? (when developing applications for the client & web, it would be nice to share the same code)
 
I have tried to use LS2J and even Java agents, without results.
I'm sure I am missing something basic here, but maybe it is not possible at all.
May 12, 2011, 8:46 AM
261 Posts
Re: SSJS & Java managed beans are great, but how to use in lotusscript?
Hi Ferry,
 
Since your question is about using beans in LotusScript, I assume you're talking about a "traditional" Notes client application, not XPiNC. Have you considered using that? Maintaining the application would probably be a whole lot easier.
 
Anyway, you're beans are written in Java class files that you've probably created in a src folder somewhere in the nsf. From what I know, these cannot be accessed/ called from LotusScript. The only way to use the same classes in LotusScript I known of is to copy the contents to a Java script library. Since beans are "just" normal Java classes, you should then be able them using LS2J. Not an ideal solution, but it works.
 
Mark
May 12, 2011, 9:10 AM
11 Posts
Re: SSJS & Java managed beans are great, but how to use in lotusscript?
XPiNC is not really an option, because I need to use it in a very very large legacy application where it will take years to completely rebuild it in javascript / xpages.
 
Thanks for the tip, I think I'm going to copy the contents over to a Java libray... ;-) 

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