IBM(R) WebSphere(R) and Lotus: Implementing Collaborative Solutions

     

As long-time Domino developers are aware, LotusScript is the interpreted, object-oriented programming language provided by Lotus across its product family, including Domino, Lotus123, WordPro, and Freelance. In order to accommodate the many Domino programmers with primarily LotusScript skills, Lotus has provided a LotusScript extension (LSX) called LS2J, which allows Java classes to be invoked from within LotusScript code. Using the LS2J LSX, it is possible, at least in theory, to implement many of the techniques we discussed here within LotusScript.

The LS2J LSX, however, allows only primitive arguments to be passed to or returned from the Java classes. This limitation makes it difficult to work with basic items such as strings or date/time values since they are encapsulated by classes in Java. In addition, since Domino agents can be coded in Java, and LotusScript programs can easily invoke Java agents, one can simply invoke the Java specific code for J2EE processing as agents from LotusScript. Given that, we feel that using the LS2J LSX to invoke J2EE components from LotusScript provides no real advantage, except perhaps to pure LotusScript programmers who lack Java skills.

Категории