Ed Green

Greenhorn
+ Follow
since Jun 15, 2004
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 Ed Green

Hi,
You could also try TableModel.setDataVector()?
Hi All,
I'm currently not specifying a char set on the way in or out, and don't seem to be experiencing any problems..

tnx
Already got the right-click menu and accelerators covered Didn't think of the double click though, good point. You think they'll notice if i just write a plugin for java that'll let me just plug excel in?
Hello all,
I'm not trying to start a flame war, but...
If 95% of the users are expecting to see certain common features and interaction models from a user interface, especially, as we are told for this assignment, these will be not-so-techy customer service reps, and eventually users themselves, the ui had _better_ follow the expected behaviour conventions, or it will end up (1) rewritten or (2) thrown out. I'm personally modeling my ui and its behaviour after excel, because i _know_ that (1) it has millions of users who are not complaining loudly enough to stop M$ sales, and (2) there are hundreds of usability experts who get paid lots of money to make sure that (1) stays true for a looooong time.

tnx.
Correct!
The client was rudely disconnecting and i was mishandling an exception.

thank you
Hi Robert,
Congrats!

A question on making data thread safe, assuming that data is not a singleton. 1. Did you manage mutual exclusion between readers and writers explicitely (keeping track of how many readers, how many writers, etc), or did you just use lock/unlock?
2. did you make any methods in data synchronized, or did you exclusively rely on the external mechanism in (1)?

tnx.
Hello all,
I am trying to create a server and a client using socket and serversocket. I'm spawning a new thread on serversocket.accept(), no problem there. My problem is as follows:
Each communiction from the server and a client is an object, currently sent using objectin/outputstreams.
I have no problems doing one iteration of client-write, server-read, server write, client-read.
but i don't know how many things the client will send to a server.
the client could send a request, wait for a response, send another request, get another response, etc.
I have a while loop, dong readObject/writeObject.
The readObject() doesn't seem to be blocking when reading from the socket on client/server side. So while the client is processing whatever the server sent, i get null reads on the server. Is there any way for me to block on the server/client on the readObject() until the other side sends something?

Thank you.
Hi,
Tnx for the response, where can i find your test code?
Hello all,
I'm faced with a bit of a dilemma: I'd like to learn as much as i can from this, and i'd like to finish this project before it finishes me.
I'm doing the B&S assignment. For locking, to make sure there are no deadlocks, dirty reads, concurrent writes, etc, i'm considering making a synchronized data class, a la Collections.synchronizedList/Set/Map. In other words, my service facade will be working strictly with all synchronized methods, i would imagine, with no chance of concurrency problem, both in local and network (rmi, in my case) modes.

I could also do a reader/writer implementation with monitors, signaling, record-level locking, etc, but there is a whole lot more of a chance i'll screw that up.

What are the chances i'll be failed for this solution?

Thank you,

| eg
[ July 20, 2004: Message edited by: Ed Green ]
Hi Hanna,
Tnx for the usage ideas, makes sense.

Anthony,
Thanx for the reply, i was thinking the same thing, but i don't know the exact record count, but i guess i could call read with an ever increasing number until i get EOF..
Hello all,
I'm doing B&S assignment, and have the following interface:

and


Maybe i'm missing something, but findByCriteria() returns a list of record numbers, which i can't return to the client, so i guess i'll have to do a readRecord() of all the records using that long[], but i've just physically read all of them to do the findByCriteria()!
Seems like a waste. What am i missing?