Steve Roderick

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

Recent posts by Steve Roderick

Well done. Are there any other books that you would recommend.
19 years ago

Passed the developer exam

General Considerations (maximum = 100): 100
Documentation (maximum = 70): 70
O-O Design (maximum = 30): 13
GUI (maximum = 40): 28
Locking (maximum = 80): 44
Data store (maximum = 40): 40
Network server (maximum = 40): 40

Spent hours on the locking mechanism but got the magic score of 44. Wonder if I should have used an Observable pattern? Anyone got any ideas about that. Also low on the O-O design which is a bit worrying. But hey, I am more concerned about getting the next exams done.

Thanks for your postings they helped alot!
19 years ago
I don't believe you can .... unless you pass in the servletcontext object as a parameter to the class constructor.
What I have done in a similar situation is to use the servlet listener interfaces to create a database connection when the servlet is initialized and pass that to the helper classes instead. You can also use them to close the connection when the servlet context is destroyed.
Hope that helps
19 years ago
My mate went for a job interview in java and they asked him how "they could change a string by passing it into a method". ANSWER they can't, or use a StringBuffer
[ November 27, 2003: Message edited by: Steve Roderick ]
20 years ago