• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client Restart  RSS feed

 
Maalti Iyer
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
Could someone help me out here!.
I had to bounce my client (solaris/iplanet app) everytime my RMI server (solaris) is restarted - Is there any way to avoid this?. Any special coding !!!
My understanding is - the naming.lookup is dynamic in nature
Thanks for your time.
Maalti
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI uses sockets for its transport base, so a bounce on the server side will drop all client connections. There are two ways to avoid this. One, use RMI's Activation feature. Activation interposes a daemon service between the client and server side, so that state changes to the server are decoupled from the client connection.
A more powerful but more complex solution; look at Jini. Jini allows you to programmatically control the 'lease' mechanism that is hard-coded in RMI. Leasing is normally used to time out a client that has made no requests, so that the server can garbage collection the associated resources. In Jini, however, you can adjust this same arrangement in a way that allows the server to bounce without disrupting service to the client.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!