blocking threads is not the problem. It's the number of files opened
simulantiasly which will cause problems
You have to tweak you're system to enlarge the number of threads(files
open).
Use servlet push (pushlets) and sent you're data chunked.
It workes!!!

-----Original Message-----
From: Bhushan Bhangale [mailto:[EMAIL PROTECTED]]
Sent: maandag 17 februari 2003 04:43
To: [EMAIL PROTECTED]
Subject: Re: Pushing data to an Applet


Paul,

As I said earlier I can't use RMI as it will create firewall problem
since the user community will be outside firewall.

Regards
Bhushan


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of Paul
Copeland
Sent: Saturday, February 15, 2003 1:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Pushing data to an Applet


Bhushan - Have the Applet be the RMI server by running a thread with an
object that extends java.rmi.server.UnicastRemoteObject.  The Server
application can be an RMI client for all these applets that are
listening. There are examples around of this approach.

Paul Copeland, JOT Object Technologies - http://www.jotobjects.com

 > Date:    Fri, 14 Feb 2003 08:27:04 +0530 From:    Bhushan Bhangale
 > <[EMAIL PROTECTED]> Subject: Re: Pushing data to an Applet
>  > Dear Ross,  >  > I don;t need Applet to Servlet communication help.
Please read my  > mail again.  >  > Regards Bhushan  >  > -----Original
Message----- From: Ross Rankin  > [mailto:[EMAIL PROTECTED]] Sent:
Thursday, February 13, 2003 9:08  > PM To: 'Bhushan Bhangale' Cc:
[EMAIL PROTECTED] Subject:  > RE: Pushing data to an Applet
>  >  > The book Java Servlet Programming has a great example of Applet
to  > Servlet HTTP communication and the code examples are online at  >
http://www.servlets.com. Check out this link for the Applet to  >
Servlet chapter examples:  >
http://www.servlets.com/jservlet2/examples/ch10/index.html
 >
 > Remember, if you want to use the classes in the book, you need to own
> a copy according to the license agreement.  >  > Ross  >  >
-----Original Message----- From: Bhushan Bhangale  >
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12,  >
2003 9:48 PM Subject: Pushing data to an Applet  >  > Hi,  >  > I have a
Java Swing applet in my site. It talks to server via Applet  > to
Servlet Communication. There is one application running at the  > server
side, which processes some order.  >  > Now the functionality which I
have to build is that the application  > should be able to push orders
to the applets, so that the users who  > are currently watching the
applet should be able to see the latest  > data automatically without
sendinga request.  >  > I searched on web but couldn't find anything as
to how can I push  > data to all the connected applets of the site.  >
> The solution which I thought is the applet will poll the server after
>  every say 1 minute to check if there is any new to show. But suppose
> the number of user is more and there is nothing new to show, the  >
applets will unnecessary making the request to the server.  >  > I can't
use Socket connection or RMI as the site will browsed outside  >  the
firewall. Is there any way by which I can push data from server  > to
applets, so that when ever new thing will come server will make  >
connection with applets and push data thereby using network only when  >
needed. Unlike in polling the network is used unnecessarily.  >  >
Regards Bhushan

________________________________________________________________________
___
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

___________________________________________________________________________
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

Reply via email to