Re: Thread info

From: Matt Humphrey (matth_at_ivizNOSPAM.com)
Date: 02/04/05


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/



Relevant Pages

  • Re: JDBC Applets - MS Access
    ... > I am working on a Applet at the moment which must be able to access ... > I need to be able to setup a jdbc connection to an Access database. ... JDataConnect also uses a server side JDBC server. ...
    (comp.lang.java.databases)
  • Re: Problem with JDBC MSSQL
    ... >>the server they were downloaded from. ... >>can sign the applet thus relaxing security restrictions. ... The wrong IP/Port was used in the connection String or, ... The SQL Server does not accept TCP/IP connections because it is not ...
    (comp.lang.java.databases)
  • Re: Unable to establish a socket connection
    ... int port) class on the applet side to establish a connection ... >> with the Server and the ServerSocketclass on the server ... When I run both the Server and Applet on the same workstation, ... I am unable to establish a connection with that Server. ...
    (comp.lang.java.programmer)
  • Session Transfer & Applet Security Related
    ... Needs to transfer the session object from server A to B. ... Using socket connection: Servlet running on server A makes socket ... Secured Applet originating from server A needs to communicate ...
    (comp.lang.java.programmer)
  • AS2005: ADOMD.Net & sessionID problem
    ... I open a connection, store the SessionID of this connection, then do ... So my code automatically create a new session. ... So the number of connections on my server growth too quickly. ... But to improve the performance I want to reuse my session. ...
    (microsoft.public.sqlserver.olap)