• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tcp/ip approach

 
Ajit Kumar
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Guys,
If i have to adopt the tcp/ip communication approach for my assignment rather than going for RMI. Assuming that the server is running on a remote location. How can i invoke a particular method from the local client(say for example criteriaFind).
In case of RMI, i can treat a remote object as local and call its methods, by the way RMI is defined.

Thanks in advance
 
Douglas Kent
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your client has to wrap the remote methods so that the GUI does not care whether the database is local or remote. Then you will have to serialize the data...why not just use RMI?
 
Ajit Kumar
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
One of the requirements of my assignment is
that 'If an attempt is made to unlock a record that is not locked by the current connection, then no action should be taken'.
This means to me that i have to know who has locked a particular record, for sure.
This may not be possible using RMI. I do not wish to make any modifications to method signatures. This is what is making me consider the TCP/IP approach.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic