Doug Avery

Greenhorn
+ Follow
since Nov 02, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Doug Avery

Hoo boy! That really narrowed it down!
I did look at Simon's book today, and I believe he had a hand in the Dev exam at one point, so I think I'll follow Detlev's suggestion.
Thanks to all.
The project instructions describe how to package your submission, and list the contents of your README.txt file. In it they say you need to include a list of the files you submit, their locations in the directory structure, and a description of their purpose.
Do they mean we are to list each and every source, class and doc file, or do they really mean list files such as your Design Decision file, your client.jar file, etc, and then merely refer to all the source files, class files, etc., as a whole by naming the directory they are in?
First, I see in several other threads a lot of talk about using a time-out when controlling the locking of objects. While I can see the utility of this in a lot of applications, is it necessary for this assignment? I don't think even Max's book deals with this.
Second, I also see a lot of mention of including a jar file in your CLASSPATH when running it. I'm running Win98 and I seem to be able to store my jar files in any directory and run them without a problem. Am I missing something, or is this something that applies only to Solaris?
D'oh!
Please disregard this post.
I should have known better than to try and test with my kids in the room.
Forgot to copy the stub.
Sorry to drag you in here.
When I run my app over RMI from two jar files, one for the client and one for the server, everthing works great. Next I wrote a tester to run multiple clients against the server. Each 'client' in the test is an extension of thread and tries to make a connection to the server and call methods on the db. When I run this, however, I get an java.rmi.UnmarshalException with a nested java.lang.ClassNotFoundException for my stub, complaining of no security manager. This happens even when I'm only trying to run one instance of the 'client'.
Why the different response when making the RMI connection from the 'run' method of a thread?
Will implementing a default security manager remedy this?
In my assignment (and I guess most others) there is a binary file that acts as the database. This is bundled up in a jar file for submission. Since the 'data' object accesses this via java.io file operations, is it unreasonable to include a step in the load/run instructions that extracts this file from the jar, and then instruct the user/evaluator to run the app from the jar file? Or is there a slick feature of 'jar' that I am missing?
I'm a little confused. The instructions specify
the use of sockets or RMI, but they don't say
anything about making RMI use Dynamic Class Loading or Remotely Activatable Objects. They do, however, mention that you can specify values for codebase and security policy files in your command line args.
Is this something they're looking for, or is it just for those who are a little more ambitious?
Thanks, Doug