On Thu, 31 Aug 2000, joseph freydlin wrote:

Hi joseph.

>       We are working on big telecommunication project. We have a lot of
> Tcl scripts which glue many Java applications talking to them using
> Corba. Now we would like to implement everything using TclBlend. Some of
> our scripts sometimes take 15 minutes of more to execute so we need
> multithreaded calls to interpreter. Our platform now is Solaris-Sparc. I
> have made little example to try tclBlend with multithreading in Java
> 1.2.2 and Tcl 8.3.2 environment. But whatever I do and whatever
> LD_LIBRARY_PATH I define my example always fails. Below is source in
> Java and messages. It looks like I am not able even create Interp
> object. I tried to create Interp in main thread. It fails with the same
> result. Some additional information: this test runs perfectly with Jacl.
> When I go to jtclsh for tclBlend I am able to create java::Interp and
> submit scripts and it works fine. I downloaded version tclBlend 1.2.6
> and built version with gcc. I built Tcl also using gcc.

It looks like you are trying to create Tcl interps from Java
(as opposed to loading Java into Tcl). This is something
that is not really supported in Tcl Blend 1.2. Tcl Blend
1.2 is just not designed for this sort of thing. The
good news is that this is an area that is currently
being addressed in version 1.3.

I ran your example with the dev 1.3 version that
has been rewritten to correctly support multiple
threads (the CVS branch name is
ajuba-tclblend-contract-2000-08-01-branch
in case you want to take a look at the code).
The good news is that it "almost" works, the threaded
Interp init stuff is working properly, but getting
the notifier working in a multithreaded way is
work that still needs to be done. Once the notifier
is fixed, there is still one other problem with
garbage collection of Tcl Objects, but once that
is fixed Tcl Blend should work with threads as
well as Jacl.

So, you have a couple of options:

1. Wait around until it is done.
   (You might want to just use Jacl until Tcl Blend is ready)

2. Pitch in.

Help is always welcome. Tcl/Java is an open source project,
so the more you pitch in the faster things will get done.
A number of new folks have started to contribute to the
project in recent months, and that has lead to a number
of great new features.

Mo DeJong
Red Hat Inc

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to