Richard Walter

Greenhorn
+ Follow
since May 26, 2001
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 Richard Walter

Hello everyone
Ive noticed in Websphere 3.5 with muliple requests from the same user on the same web page that websphere handles these concurrently. This is causing us big problems in our application.

Is it possible to configure websphere so that if two requests are submitted from the same user that the first one is completely finish before the second one begins its processing??
Thanks
Richard Walter
18 years ago
thanks guys for the answer
HOping someone could tell if execution i catch statement blocks remain synchronised, as in the following code?
synchronise (object) {
try {

//do something

} catch (Exception1 e1) {
//do soemthing here
//is it still synchronised

} catch (Exception1 e1) {
//do soemthing here
//is it still synchronised

}
}

Would be gratefull if you could also point me to an official source that clarifies this. Also, are ther any general issues, best practices etc.. to conisder in the above code example??
Thanks,
Richard Walter
18 years ago
HOping someone could tell if execution i catch statement blocks remain synchronised, as in the following code?
synchronise (object) {
try {

//do something

} catch (Exception1 e1) {
//do soemthing here
//is it still synchronised

} catch (Exception1 e1) {
//do soemthing here
//is it still synchronised

}
}

Would be gratefull if you could also point me to an official source that clarifies this. Also, are ther any general issues, best practices etc.. to conisder in the above code example??
Thanks,
Richard Walter
Well,
I woke up this new year with a pleasant suprise in the new year. I passes with 149/155!!
Here is the breakdown:
The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 56 Documentation(maximum = 20): 20 GUI(maximum = 24): 20 Server(maximum = 53): 53
Thanks all to those who have contributed to this forum, you were a great help!
Happy New Year!!
Rich
Well, Im glad my thinking is correct for once.
Mike,
This is how I implemented the database lock:
private synchronized void lockDatabase(Connection currentConnection) {
while (anotherConnectionOwnsDatabaseLock(currentConnection)
&& otherConnectionsOwnRecordLocks(currentConnection)) {
try {
wait();
} catch (InterruptedException e) {
//do nothing
}
}
databaseLockOwner = currentConnection;
}

Basically it checks if another client(connection) has the database lock as well as checking if any other connection has any records locked. It waits until neither a databse lock is held by another connection and no record locks are held by other connections.
Rich
Just would like to confirm that you do not need to lock the record if you just want to get a record from the database with no itention of modifying it.
My concern is that without locking the record, another client might be modifying the record while Im reading it, therefore I might get some erroneous data in my record.
I presume this will not happen as the getRecord and modifyRecord are both synchronised in the Data clas, thus preventing a read while a record is being written.
In my current implmentation I lock the record before reading it. If a connection attempts to read a record without obtaining a lock first an exception is thrown. I think this is all uncesssary.
am I right in my thinking or am I missing something?
Thanks,
Rich
Hi fellow Java coders,
Well, I have coded my FBN application and tested it on NT platform but I have run into a problem. I do not own or know anybody who has a Solaris and/or Linux operating system that I can use to test my application
Anyone know how I can test my application? Virtual Machine?
All I want to test is the GUI Layout and re-sizing, as well as the saving and reading of some property files.
If you have access to these O/S�s with a JRE 1.3 or greater installed and would like to kindly but BRIEFLY test my application for me I would be most appreciative.
Thanks,
Rich
richard.walter@nrma.com.au
funny you mentioned that. I get the same thing happen on my pop-up dialog boxes. This happens on Windows XP and NT operating systems.
Anyone know why this happens and how to get rid of it??
Rich
If a client callsclose remotely, won't that close the database on the server which means other clients will no longer able to access the database?
Hi fellow java coders,
I was wondering if anybody has used athe TimerTask class to clean up stale locks. My concern here is that if we use this class then my code will not run on all Java 2 platforms as my specifications state:
"Specifically, you should document clear, simple command lines that allow your programs to be run on ANY Java 2 platform,.."
Does this mean if that my application must run on all Java 2 platforms, or have I misinterptreted the specs. Using TimerTask (as its a 1.3 implementation) does not meet this requirement.
Any thoughts?
Cheers,
Richard
Thanks guys for answering.
Its starting to make a little more sense. If I have understood correctly the JTable is more customizable but you are treating it like a list, where the user selects a row which is associated with a particular flight. There is no modification of individual cells, Am I right here?
I presume when a row is selected from the JTable, a dialog window pops-up (or, alternatively is displayed in another view on the main GUI) which allows the number of seats to book to be entered.
Hi coders,
Im confused about the GUI for FBN. Isn't JList more appropriate than JTable. The way I see it, the user searchs for a particular flight. Matching flights are return as a list(JLIst) of flights. The user clicks on the flight he is interested in, which gives more specific information about the flight and an option to enter number of seats and book flight.
Where does the JTAble fit into this? How are people using JTAble in their GUI design? Do you edit a 'no. of seats' cell directly to book a flight?
Richard Walter
Gennady,
I had the same thoughts as you on this matter and agree with what you said. I have a TimerTask object that cleans up locks that are more than 10 seconds old. I still use unreferenced though as a secondary precaution which cleans up expired locks after 10 minutes. Not sure if this is overkill or necessary.
Rich