This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
krl servlets
- From: "62945" <62945 at bol dot com dot br>
- To: "kawa" <kawa at sources dot redhat dot com>
- Date: Sun, 30 May 2004 15:36:22 -0300
- Subject: krl servlets
- I have two (krl) servlets accessing the same *static*
module through "require". There seems to be a problem
since both don't work at the same time. The first
servlet to be invoked keeps working fine but the other
doesn't. If the container is restarted and the second is
called first it works ok but now the first servlet
breaks. I suppose this has to do with the registration
of the module. The docs say there can only be one
instance of a static one. So this means the module can't
be shared, right ...
- are procedure closures thread safe ?
Consider
...
(define (st)
(let ((x 0))
(let ((inc (lambda () (set! x (+ x 1))))
(dec (lambda () (set! x (- x 1)))))
(lambda (op)
(case op
((inc) (inc) x)
((dec) (dec) x)
(else #f))))))
(define s0 (st))
...
I wonder if (s0 'inc) (s0 'dec) will work correctly for
a servlet called by different clients.
What about defining "st" in a (static) module and
requiring it by other modules.
Thanks,
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/