RMI Timeout Question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: RMI Timeout Question

  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 Attached Files

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center