DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Fabio Luis De Paoli Guest

    RMI Timeout Question

    I'm designing a corporate application that will have an applets talking to
    remote RMI objects. The frequency of their "conversation" will depend on
    the user's input, therefore I may have periods of silence longer than 10
    minutes. As far as I understand that will cause me to loose my RMI
    connection/reference to the my remote RMI object.

    Is there any way to avoid that? Would it be a good idea to implement a
    dummy ping() method on the remote object and have a thread on the applet
    pinging it every 5 minutes or so?

    Thanks & regards,

    Fabio

  2. #2
    syed Guest

    Re: RMI Timeout Question


    Hi,
    Why don't u use Threads, use sleep(ms).

    Regards
    syed zulfiqar

    Fabio Luis De Paoli <fpaoli@sao-co.br.dhl.com> wrote:
    >I'm designing a corporate application that will have an applets talking

    to
    >remote RMI objects. The frequency of their "conversation" will depend on
    >the user's input, therefore I may have periods of silence longer than 10
    >minutes. As far as I understand that will cause me to loose my RMI
    >connection/reference to the my remote RMI object.
    >
    >Is there any way to avoid that? Would it be a good idea to implement a
    >dummy ping() method on the remote object and have a thread on the applet
    >pinging it every 5 minutes or so?
    >
    >Thanks & regards,
    >
    >Fabio



  3. #3
    Fabio Luis De Paoli Guest

    Re: RMI Timeout Question

    Hi Syed,
    I didn't understand your suggestion . Do you mean make the applet sleep?
    Please expand your answer. Thanks & regards,
    Fabio

    syed wrote:

    > Hi,
    > Why don't u use Threads, use sleep(ms).
    >
    > Regards
    > syed zulfiqar
    >
    > Fabio Luis De Paoli <fpaoli@sao-co.br.dhl.com> wrote:
    > >I'm designing a corporate application that will have an applets talking

    > to
    > >remote RMI objects. The frequency of their "conversation" will depend on
    > >the user's input, therefore I may have periods of silence longer than 10
    > >minutes. As far as I understand that will cause me to loose my RMI
    > >connection/reference to the my remote RMI object.
    > >
    > >Is there any way to avoid that? Would it be a good idea to implement a
    > >dummy ping() method on the remote object and have a thread on the applet
    > >pinging it every 5 minutes or so?
    > >
    > >Thanks & regards,
    > >
    > >Fabio


    Attached Files

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links