RJ Cox

Greenhorn
+ Follow
since Feb 01, 2002
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 RJ Cox

The directory that it is asking for is just a place where forte puts some run-time and config files; I usually just say C:\ForteInformation and leave it that. This is the default root area where projects are saved off to if you don't specify a particular directory for your new projects. As for changing the ForteInformation directory later, can't say that I've ever seen a way to do that, but then again, you don't really need to.
Before you fire up forte, I'd suggest creating a projects directory, say at C:\Projects. Then just before you start a new project, say MondaysProject, create a directory under that, i.e. C:\Projects\MondaysProject. Then go into forte, select the project manager, and say New Project, give and give it a name, e.g. MondaysProject. Then go to the file systems tab and mount the C:\Projects\MondaysProject directory. That's just the way I've done it and it seems to work pretty well.

hope that makes sense; forte is really pretty nice once you get used to it
Hi folks --
I just finished a Sun J2EE workshop and we used the Community Edition of Forte. We were able to create EJB's from templates in the IDE and I can't find on my version of ForteCE where EJB's can be referenced/enabled.
Does anyone know if this is possible or do I need a special EJB file to add to forte?
Thanks
RJ
Hi folks --
Just wondered if anyone has an opinion for moving on to the Architect's Certification. Do you think more employment opportunities would be available with the architect's path?
Thanks
SOLVED.
When starting up the rmi registry I had inadvertantly fired it up within a command line that had happened to have a CLASSPATH already set.
Just needed to zap the class path first, then start up the registry.
Thanks all
Hi folks,
Just a quick question. I've been through most of the boards and didn't quite see the same problem I'm having and thought it must be something easy but subtle.
I've developed the client and server using Windows XP and have gotten them to work on XP, 98, and 2000. However, when I try to run the set on a Solaris (or Linux) I get the Unmarshaled Exception, nested exception ClassNotFound on my server stub class.
I am specifying the server's jar file as the codebase when starting up the registry and server, but the server on solaris always throws the above exception. I even unjarred my server jar file to ensure that the stub class was indeed there and indeed it was. In fact, if I pointed the codebase to the extracted jar file, then it seemed to find it ok. But it seems to have problems finding the stub class when packed into the server jar file.
Anyone experience this; i.e. works fine on Windows, can't find the stub on Unix.
Thanks
RJ
PS: command line
rmiregistry -J-Djava.rmi.server.codebase=myServersJarFile.jar
java -classpath myServerJarFile.jar -Djava.rmi.server.codebase=myServerJarFile.jar suncertify.server.Main
That's kind of what I thought (that it would over-complicate the design), but it is also the case that buffering like that is something you'd normally do in a real world situation. I'll leave it out though. Thanks VERY much for your insights.
Hi all --
The example database (db.db) only had about 20 or so records in it so reading the entire record set is not really a big deal.
However, if there were many many records, one would normally want some type of buffering scheme. I was just wondering if this is necessary for the assignment since it was not really called out as a requirement specifically.
Thanks
Ok, thanks very much for your insight, especially the phrase that they won't care too much if a client has to wait. That was what was bugging me.
Will take the less convoluted route for now.
Thanks
Well the purpose of the reader/writer locks is to allow several readers to access a given record simultaneously as long as there is only reading going on for that record. I don't want any readers to access a given record if that record is being written.
If a writer wants to access a given same record, then he must wait until the readers are finished with that record.
On the reverse side, if a writer is busy writing a record, then no readers nor writers should be allowed to access that record until the busy writer if finished with it.
If I don't use both reader and writer, it seems like multiple clients doing a variety of reading and writing may unneccessarily have to wait.
Hope that makes sense, it's just to allow writers to know when readers are accessing a record (and so prevents him from writing the record) and for readers to know if any writers are accessing a record (which would prevent them from reading the record).
PS --
Kludgey (kloogee) (adj.) Non-standard and odd implementation, but one that works. Can be applied to describe Rube Goldberg type devices; used often by people touting at windmills.
Quick question on the legality of overriding lock/unlock methods:
I want to implement the lock/unlock algorithm by using a reader AND a writer lock. (The project specifies a lock/unlock method, but does not distinguish between reading/writing.) But to implement my preferred method of using reader/writer locks, I think I need to subclass Data and then provide a lockReader and lockWriter set of methods (as well as unLockReader and unLockWriter). This is to maintain the original lock/unlock signatures of the Data class.
I can implement the writer lock logic in the parent Data class' lock/unlock methods, and the reader logic in the subclass' lockReader/unLockReader methods. The subclass' lockWriter and unLockWriter would simply call the parent's lock/unlock methods.
The only problem I see is that the original lock/unlock methods in the parent class should not be called directly by any other class than the child class in order to take advantage of the reader/writer granularity. Just wondered if this is too kludgey of a solution and/or if I should skip the concept of having reader and writer locks.
Thanks
RJ
Thanks for the hint -- the WinXP default IP address was being used and it (the address) and sub mask were actually an illegal combination. I changed the IP and subnet to a logical combination and that cleared it right up. (Still can't figure out, though, why sockets worked.)
18 years ago
Greetings --
Been fighting this problem for two days and haven't found any solutions on any of the boards, just wondered if anyone has had problems running RMI application under Windows XP (home edition).
I moved a working RMI application from Windows 98 (working fine) to a Windows XP Home Edition machine.
The registry appears to start up fine.
The server appears to bind to the registry just fine.
The client appears to connect initially to the server (takes a while, though, strangely slow) by getting an instance of the server (as a remote object).
But when the client actually tries to call one of the remote methods, the following error is issued after about 20 seconds or so:
Connection refused to host
nested exception is:
java.net.ConnectException: Operation timed out: connect
Just wondered if anyone has had issues similar to this with WinXP.
Thanks
18 years ago