• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Useful Article: "Applying the Factory Pattern to RMI"

 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found a short, but to the point article, very relevant to our assignment (as I can see):
http://java.sun.com/products/jdk/1.2/docs/guide/rmi/Factory.html
Eugene Kononov.
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eugene,
Thank's for the great link!
 
Leonardo Penha
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to bind a remote object from another machine other than the local host. I have tried and I keep getting a java.rmi.AccessControlException. It would be wonderful if (from the article) the Bank Manager could create and register the Accounts and then return a remote reference when a client calls one of its methods.
 
Leonardo Penha
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I get a java.rmi.AccessException
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I get a java.rmi.AccessException

That is usually related to the RMISecurityManager. So basically that client does not have "Permission" to bind an Object into the remote's RMIRegistry.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic