• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rmic tool needed?

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I tested my project a lot and it works well. However, I just found that in Andrew's book, it also mentioned using rmic tool to generate the stub.

What is the purpose? Do we need to use this?

I made the RemoteServiceImpl extending UnicastRemoteObject, and register the RMI using the regular approach.

Thanks.

Yu
 
Ranch Hand
Posts: 221
Scala Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Yu,

Yu Sun wrote:
What is the purpose? Do we need to use this?



Yes, you do. In my instructions I have:

You must provide all classes pre-installed so that no dynamic class downloading occurs.




HTH,

Carlos.
 
Yu Sun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Carlos. I guess I am ready to submit

Yu
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Champions, I myself didn't use rmic and said that in the essay exam and in my choices.txt file. There was another guy from Brazil too (I don't recall his name right now) that didn't use it and also passed. I said that, since I was using Java 6, it wasn't necessary anymore so I chose not to use it.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Yo,

in my assignment there is the same requirement as Carlos wrote...

You must provide all classes pre-installed so that no dynamic class downloading occurs.



So in my opinion you have to use rmic, because it is a must. I think we all know that this ist not necessary since Java 5, but it is a must.

I use Ant to make everything in my project, from the Compile, over the creating of JavaDoc to the complete build of the jar to submit. For example this is an Ant task for rmic:


..and this task compiles one stub and one skeleton...

Kind Regards,
Ralf
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


<rmic classname="suncertify.db.UrlyBirdModelImpl" base="build/classes"/>



Hi Ralf,

seems like you have exactly the same nomenclature like me .
I also named my model "suncertify.db.UrlyBirdModelImpl".

Kind regards,
Andy
 
Ralf Titgemeyer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andy,

I think we had the same teacher....

Have a nice evening in Munich,
Ralf
 
Yu Sun
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot, guys.

I also have that "must" requirement for my assignment, so I just generated it.

Yu
 
reply
    Bookmark Topic Watch Topic
  • New Topic