Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Stan Griffith

Greenhorn
+ Follow
since Jun 04, 2005
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 Stan Griffith

Frans,

It is more than two days since I mailed to Sun (who2contact@central.sun.com)about this issue. So far no response from them. Any idea how I can get a quick response from them?

regards

Stan.
Hi All,

I made the submission yesterday. Incidentally, in the heat of the moment, I fear I may have uploaded an incorrect version. Will I be allowed to upload again, since I have not taken the essay exam yet.

Appreciate your inputs.

Thanks

Stan
Thanks Zee. All I needed to know was whether there would be any networking while accessing the file from the netowrked server. I had thought that it would not be required. Thanks for the confirmation.

Stan.
Hi All,

I need some clarifications on some of the "must" requirements in my assignment (URLy Bird).


1. Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.



Am I right in assuming that, the data file will be on the same physical host(or file system if you will) as the server program (which you run by executing java -jar runme.jar server)? Meaning the access to the database from the server itself is not over a network. Where as the client gui and the server must communicate over a network by way of RMI/sockets.

2.This one is from the 'Marking' section.


First, software checks that overall structure and nomenclature conform to specification. If any automatic failures are noted at this stage, the marking process terminates and the assignment is failed.



What structure is the software looking for? My assumption is that it is introspecting whether the Data class implements the interface exactly as provided by Sun .

pl. correct me if i am wrong.

thanks

Stan
Thanks Yevgeniy. It worked for me. Sorry for the delaye in responding.

Stan
Thanks for the reply Andrew. I take it that it is ok to use classes like Font, Color and layouts like FlowLayout and BorderLayout.

regards

Stan
Hi Ranchers,

My assignement has the following statement.


The user interface for this assignment must satisfy the following criteria:

It must be composed exclusively with components from the Java Foundation Classes (Swing components).



Does this mean that I can not use awt features like Font, Color? Infact all the layouts are from awt package.

Thanks

Stan
Hi All,

I have tried to write a common logging class that writes to a file.



I call the static methods of this class to get logger objects and whenever I need to write to a file. Currently, when I execute this, several log files get generated as well as '.lck' files in the current working dir. I am not sure why I am getting this behaviour (more than one log file and .lck file).

Any help is appreciated.

thanks

Stan
Hi Michal,

Thanks for the clarification. I am also not getting the compile error anymore. I agree with your explanation.

regards

Stan
Hi Michal,

You are right. It is a typo. You are also right about introduction of a checked exception. My problem is this.

I have an interface which I use when I make local connections (alone as paramater)


and another interface which is a remote interface that extends the above interface as well as 'Remote' interface. I use this in the code when I have to make networked conections.



This interface has no methods but uses the methods in 'IDBAdapter' interface.
So this interface by definition has to throw Remote Exception in the method signatures.

But when I do so, I get the compilation error. So all I am trying to do is figure out a way to reuse my existing interface to make the design clean.

How are you dealing with this problem? Do you have two Adapter interfaces for Remote and local connections?

Also, in Max's book there's an example which does this interface reuse and it compiles perfectly too.

regards

Stan.
Hi All,

I am doing the URLyBird project.

I have the following high level interface which encapsulates the lower level Data class functionality.



I have a remote interface which re-uses the above interfces.



However, when I implement the remote class and add the RemoteException in the method signature, I get a compilation error.



But I have seen similar reuse of existing interface in Max's book. Am I missing something?

I know that I can define two different interfaces for local and remote invocations which may not be an optimal design.
I am really having a hard time figuring this out. Any help is appreciated.

regards

Stan

[Andrew: Forced line breaks in source code so that horizontal scrolling should not be required].
[ June 05, 2005: Message edited by: Andrew Monkhouse ]