Graham Lewis

Greenhorn
+ Follow
since Sep 25, 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 Graham Lewis

Hi Lavjeet,
I'm not the best person to answer this as I live and work in central London. So by my standards - Norwich is inexpensive. However, ~�2600 per month is a *very* fair wage - in London.
It's my guess that most folks go by two basic requirements 1) somewhere to stay; and 2) beer. Beer's about �2 a pint in Norwich!
17 years ago
Hi Abhishek,
No problem!
I understand what your doing now - still sounds a bit brutal - but we've all sat exams right ;-)
Cheers,
Gray
17 years ago

Originally posted by Abhishek Asthana:
What kind of a timer are you talking? Please specify. And how to make such a timer?



Hi

I think what you're looking for is a TimerTask - see the Java API java.util.Timer and java.util.TimerTask - a good example is at: http://javaalmanac.com/egs/java.util/ScheduleLater.html.

Then it's simply a case of doing at the appropriate time - inside the timer. I'll leave how to attach the timer thread to the session for you to work out

Not really for me to ask - but why would you want to kill a client that's been logged on for an hour. Don't think they'd apprechiate it much! What if they are in the middle of something which involves putting data in the session - are you just going to loose that data? Are you going to tell the user what's happened?

Cheers,
Gray
17 years ago

Originally posted by marc weber:

Hmmm... I might give that another try now that I've switched to Mac. (On Windows, JEdit kept getting associated with incorrect file formats, including audio and graphic files. This was the only app that did this, so I uninstalled just to keep it from launching all the time.)



Hi Marc - did you use the JEditLanucher package? I've not used this (at least not knowingly), but according to the JEdit FAQ's this allows file types to be associated with JEdit - so double-clicking an icon will try to load that file type in JEdit. I've always just used a 'standard' install with no problems - Mac OS X, Windows and Linux! All the best.
Gray
17 years ago
Hi - This is my understanding and please forgive me if I state the obvious.

Java runs on a Virtual Machine (VM), i.e. it is not compiled code native of the systems architecture, and runs in an environment that sits on top of the operating system. Java web applications can be run across multiple VMs which may (or may not) be on different machines - the management of this is done by the Web/Application server - the container.

In order to migrate or move a session to a different VM - without loosing the session state (attributes etc.) - the container needs to ensure that the VM on the receiving side has everything it needs to keep the session going and make it look to the user like nothing has happend.

Hope this makes sense.
Gray
17 years ago

Originally posted by Heero Yuy:
I tried using textedit (iBook G4) and save it as rtf or word format. Then I go to the console and rename the file to .java... However I get a compile error saying about an illegal character? I get this in almost every line... Am I using the wrong tool? Thanks!



Why don't you try JEdit at www.jedit.org - a nice, easy to use, platform independent text editor?
17 years ago