Subject: Re: tcl blend + java RMI newbie questions - DN [1]
schenck_97@my-deja.com - 20 Jan 2000 - comp.lang.tcl,comp.lang.java.help
In article <3868C2CB.A444044B@avk.com>,
andre <andre@avk.com> wrote:
>
>
> Hi all,
>
> what I would like to do is to create a TCL object/thread within JAVA
> that
> will execute a TCL based script calling local and remote objects using
> RMI from within
> this tclblend script, related to this topic a couple of questions:
>
.
.
.
> 5) can I use RMI within a TCLBlend tcl based script?
>
> any help/suggestion is appreciated!
>
> Andre
Andre,
I'm not sure about all of your questions, but you can use a TclBlend
script to call a Java RMI-based object. Here is some code that I use to
connect to a Java RMI server object:
#- Proc to connect to epiSEM server
proc episem::connect { connectStr } {
java::try {
set server [java::cast EpiSEM [java::call Naming lookup
$connectStr]]
$server sayHello
} catch { Exception e } {
recordException Exception $e
error "General exception: [$e getMessage]"
}
return $server
}
My connect string looks like this: "rmi://localhost/EpiSEM"
Dan Schenck mailto:schenck@posc.org
POSC http://www.posc.org
Houston, TX
Sent via Deja.com http://www.deja.com/
Before you buy.
Last modified
2000-02-10
2000-02-10
(195.108.246.50)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
