• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reflective RMI possible.??  RSS feed

 
Shreyas Dange
Greenhorn
Posts: 16
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends ,

i want to know whether the RMI mechanism in java uses reflection somewhere for creation of proxies .??

if not , then ,can reflection be used with RMI to create dynamic proxies(stubs and skeletons) , i mean could it be a good area of research .??



thanks in advance..
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, of course it is possible.
But it sounds like a recipe for disaster.
You would have to go through the JVM code to find out whether RMI uses reflection or not. I always thought it worked by serialising objects and sending them across the network.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have an opinion one way or the other, except that IMO nothing about RMI is worthy of research at this point. RMI is a dying technology, replaced to a large degree by web services.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shreyas Dange wrote:if not , then ,can reflection be used with RMI to create dynamic proxies(stubs and skeletons)...

It would appear from the replies that you can - but would you want to test it?

Winston
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!