• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI interface implementation

 
Greg Belyea
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just finished writing the interface for the RMI Server of my FBN proj. I have'nt done much RMI so I'm struggling a bit with the implementation phase. When others made their new class extending UnicastRemoteObject what steps did you take in coding the methods. I was talking to one person who said that they implemented the interface in the Data class itself but I'm thinking that they wanted us not to alter the Data class since it is reasonably complete???
Can someone shed some light on this, I'd really appreciate it, I'm working with real limited reference material for RMI so I'm having a hard time wrapping my brain around it???
Thanks all
 
Raj Devaraj
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI resource is plenty full if you look around. SUN's online training,
http://members.spree.com/education/developergrp/
EJB book by ED Roman(Appendix A & chapter 9), Core Java Volume 2, Professional Java server book(I forget the author's name). Your best bet is to do many sample programs available. Tweak them in one way or the other. I got lot out of these resources in just 3-4 days. Sun's site is as below http://developer.java.sun.com/developer/onlineTraining/
If you do on your own , not only you get the certificate, but learn a lot.
Good luck
Raj
 
David Mullens
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gbelyea. Where are you at in the assignment? I just started about three weeks ago. I read the rmi stuff from Sun's website, but I think the information from the book Learning Java from O'Reilly publishers gives just the right amount of information.
I didn't want to change the Data class very much either. I'm planning on implementing a facade or proxy pattern in the class that extends the UnicastRemoteObject. That way, I can have any coding that I need there, rather than needing to change the Data class any.
If you have any ideas about this, feel free to let me know
Dave.
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a good article about RMI and the adapter pattern: http://www.javaworld.com/javaworld/jw-05-1999/jw-05-networked.html
Enrico Mannarino
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learning RMI was really painful to me. I tried possible all resources. One of them is
http://www.cybcity.com/gui/rmitool.html
I downloaded and went through code. I got some light what is happening? and how to do it?
-Bal
[ January 23, 2002: Message edited by: Bal Sharma ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic