Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI -- rmic -- rmiregistry -- How to use In WSAD5

 
Peter Yunguang Qiu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to WSAD, How to use RMI with WSAD5.0?
How to do rmic, and rmiregistry?
Thanks for help.
Peter
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WSAD does not support RMI directly. There are no wizards and no direct connection into RMIC or way of starting the RMI registry.
Kyle
 
Peter Yunguang Qiu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle:
But How to run rmi program with WSAD indirectly? Or I have to export the program?
Peter
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run the program within WSAD just by using the "Run" icon on your main class. But you'll have to start the rmiregistry externally (at the command line), and you'll have to run RMIC externally as well.
Kyle
 
Peter Yunguang Qiu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Kyle:
Thank you very much. Do you know the reason that WSAD does not support rmi directly?
Peter
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mainly because it's not a J2EE technology (RMI over IIOP is). We support creation of EJB's, which do *everything* that RMI could do, so wjy support the older, less flexible, more insecure version of the technology?
Kyle
 
Peter Yunguang Qiu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Kyle.
Many people are taking SCJD exam. To do the assignments, we need to use rmi, gui, stream (for reading/writing files). These seem to be old and not j2ee. Do you think these technologies useful?
Another question: I feel that visual editor doesn't help a lot to create GUI, I prefer to write code to create GUI. Maybe it is because I am not familiar with visual editor. What do you think?
Peter
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the thing is that all of those technologies are VERY useful, even within J2EE, with the exception of RMI. RMI has, to a great extent, been superceded by RMI and RMI-IIOP. It is because of the J2EE focus of WSAD that we do not provide direct support of RMI.
As for the visual editor -- no mere human should ever be responsible for having to master the intricacies of a GridBagLayout. That kind of thing is what the visual editor is good for.
Kyle
 
Peter Yunguang Qiu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much, Kyle.
Peter
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic