ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-user
tcljava-user
[tcljava-user] Some questions
by John Salvo other posts by this author
May 19 2001 5:50AM messages near this date
Re: [tcljava-user] Some questions ( no HTML now ) | Re: [tcljava-user] Some questions
I am a Java developer, with some basic knowledge of Tcl. I am intersted
mainly in Tcl calling Java methods. In the end, I want to use it with
Vignette's StoryServer.

I have recently downloaded and tried TclBlend on both linux and Solaris, and
they worked as expected.

However, I still have some few questions that I cannot find in the FAQ.

1) In the man page for "package require java", it said that "Tcl will create
a JVM in Tcl's process space". What does this exactly mean? In both linux
and solaris, when I call "package require java" in a Tcl shell, I cannot see
a java process runnning ( even with linux's "ps axf" command ). To be
honest, I was expecting a Java process somehow as a child of the tcl
process, but that does not seem to be the case. What are the differences (
and implications ) between what I was expecting and what tclblend actually
does?

2) How many JVMs are created within the lifetime of the tcl process? For
example, if multiple tcl scripts have a "package require java" as the first
line of each of the script, will each call to "package require java" create
a new JVM?

3) This last question maybe a bit offtopic ... but with StoryServer ( SS ),
a SS template can be called multiple times by different browsers at the same
time ( multi-threaded ). Within Vignette's installation page for TclBlend,
the TclBlend binary distribution does not seem to be any different ( e.g.:
no proprietary extension seems to be required or installed to make TclBlend
work with SS ). With this regard ( threading ), will each call to the
template create a separate JVM?

Probably a better way to ask question [3] is: If I was doing threading in
Tcl, will each thread run its own JVM?


Thanks in advance,

John Salvo
Attachments:
unknown1

Thread:
John Salvo
D. J. Hagberg
Mo DeJong

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved