Re: Thread info
From: Matt Humphrey (matth_at_ivizNOSPAM.com)
Date: 02/04/05
- Next message: Marcus Leon: "Eclipse and XDoclet Help"
- Previous message: Antti S. Brax: "Re: illegalMonitorStateException"
- In reply to: nialltimpson: "Re: Thread info"
- Next in thread: Ann: "Re: Thread info"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 4 Feb 2005 13:59:57 -0500
"nialltimpson" <niall_mulhare@hotmail.com> wrote in message
news:f49267a31224098f1b8b98f7102aeb3b@localhost.talkaboutprogramming.com...
> Ill explain a little clearer,
> (1) I have an applet which automatically connects to my application server
> on execution.
> (2) The application server inturn connects to a another application, which
> is connected to a DBMS, this is inorder to create a barrier between the
> user and the database.
> (3) as the applet closes it kills the connection with the application
> server(i think).
> (4) so when the user connects again it will create another connection, but
> here instead of creating another thread, I wanted to know would it be
> possible for it to join back to the thread it originally came from.
I have to admit I'm not getting the picture. I presume the user is
connecting again via the same applet but at a later time. Are you trying to
reuse the applet's (client) thread and its connection to the application
server? Or are you trying to reuse the server's (client) thread so that it
can handle new client requests? Your question as to whether it (the applet)
can join back to the thread it originally came from doesn't make any sense.
The execution of one piece of program cannot join back to another thread. A
thread *is* a running piece of program. You may be able to create a static
object on the client's machine that represents the connection to the server
and then reuse that connection when the applet reconnects. I'm not sure if
that's possible (but it is testable.) My previous message described how to
reuse the server's thread.
What I really can't figure out is why you think you would need to do this?
Can you described what you want to accomplish without saying how you think
you should do it?
Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/
- Next message: Marcus Leon: "Eclipse and XDoclet Help"
- Previous message: Antti S. Brax: "Re: illegalMonitorStateException"
- In reply to: nialltimpson: "Re: Thread info"
- Next in thread: Ann: "Re: Thread info"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|