[tcljava-user] JACL Script inside EJB
Brought to you by:
mdejong
From: Sai G. M N <Sai...@pl...> - 2000-11-08 10:03:28
|
Hi I am trying to run a JACL script inside an EJB (Enterprise JavaBean). I pass the name of the script as an input paramater. Then the EJB reads that file and runs it using the Interp.evalFile Command. So Far, so good However, I want to be able to pass a Java Object (or may be a TclObject) to that script and the script should work on that object. Basically, the object would contain name-value pairs, which are the arguments for the script to work on. 1. Is this kind of a scenario implementable in JACL? 2. If so, will any JACL script be able to understand Java Collection Objects or should I convert them into TclObjects? Is this possible and how? 3. Once I convert it to a TclObject, how do I make the JACL script access this object? CAn I pass it as a parameter to the script? Or is there some other way approaching the above mentioned problem? Would really appreciate any kind of inputs that can be given on the above subject. Thanks Sai Geetha |