This is a good example of test
The class runnable t1 or t2 can be implemented with the network and stop thread.
by. :-)
//: Example.java
public class Example implements Runnable {
public int threadNum;
public int contNum = 0;
public Example(int threadNum) {
this.threadNum = threadNum;
}
public void run() {
while(true) {
......netw...
System.out.println("Thread ("+threadNum+") = "+contNum);
contNum++;
if(contNum == 10) return;
}
}
public static void main(String args[]) {
Thread t1 = new Thread(new Example(1)); // stop or start
Thread t2 = new Thread(new Example(2)); // applet or servlet
t1.start();
t2.start();
}
}
------------------------
From: Giovanni Santini SZ3PGQ <[EMAIL PROTECTED]>
Subject: R: Applet and Servlet.I need Help!
Date: Wed, 5 Jul 2000 16:32:47 +0200
To: [EMAIL PROTECTED]
How can I do? Can you give me an example about how can I invoke from a
servlet an applet, syncronize
initialization of applet, and than open connection with DB. Thank you in
advanced.
Grazie Mariano.
-----Messaggio originale-----
Da: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]Per conto di
[Mariano Pollio]
Inviato: mercoled� 5 luglio 2000 17.15
A: [EMAIL PROTECTED]
Oggetto: Fw: Applet and Servlet.I need Help!
hi,
You have used the method syncronized for class java.
------------------------
From: Giovanni Santini SZ3PGQ <[EMAIL PROTECTED]>
Subject: Applet and Servlet.I need Help!
Date: Wed, 5 Jul 2000 15:28:44 +0200
To: [EMAIL PROTECTED]
Hello,
excuse me but I've a little problem. I've to modify an Informix DB on Client
Side with JDBC.
But all the client are included in a local network, so each client have two
IP Address:
- IP absolute
- IP local
Informix DB is registred with local IP. So I can't access without a TCP
redirection. I do this with a sign Applet.
But I don't want my client have two Open two Netscape session. Probably if I
can open Applet and after open the connection
there will be no problem. But the connection was opened before the applet.
Hoe can I syncronize that?
Thank you.
Giovanni.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
---------------End of Original Message-----------------
--------------------------------------------------------
Name: Pollio
E-mail: [EMAIL PROTECTED]
Date: 07/05/2000
Time: 16:14:31
--------------------------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
---------------End of Original Message-----------------
--------------------------------------------------------
Name: Pollio
E-mail: [EMAIL PROTECTED]
Date: 07/07/2000
Time: 12:23:34
--------------------------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html