• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing that dynamic code download does NOT occur

 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I'm trying to ensure that dynamic code downloading doesn't occur when I run my client. Is is enough to see that the stub is loaded when running Java in verbose mode;

java -verbose -jar runme.jar
....
Loaded suncertify.server.Server_Stub from file:/C:/cygwin/home/jmcparla/SCJD/scjd/runme.jar]

I think I got this idea from this forum but I can't remember where.

There is only one class which I export to the RMI registry and it is suncertify.server.Server. I've used RMIC to build the stub.

Regards,

John
 
Cindy Carney
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, technically it says 'You must provide all classes pre-installed so that no dynamic class downloading occurs.' I would think that doesn't mean to disable dynamic class downloading, but instead to make it 'unnecessary' by supplying all classes.

Just a guess from reading the assignment, though - that's how I interpreted that section, anyways. I would think ensuring all your class files are there would be sufficient.

 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John McParland wrote:I think I got this idea from this forum but I can't remember where.
I guess you find your inspiration here.
 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Cindy / Roel,

that's cleared things up. That was the post I was looking for. I don't know how I couldn't find it.

Oh well, looks like I will be submitting this week. Getting nervous / excited.

Regards,

John
 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If anyone's interested the output you get when you don't use the stubs (which happens in alone and server mode) is;

[Loaded suncertify.server.Server from file:/C:/cygwin/home/jmcparla/SCJD/runme.jar]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic