Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Giovanni De Stefano

Greenhorn
+ Follow
since Jul 18, 2006
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 Giovanni De Stefano

Are you sure you REALLY want to run multiple istances of your server???

I suspect that you want to serve more than one client...this means that anytime a client connects to the server, the server creates a workerThread able to handle the communication with the client and then the server gets back to the waiting state (while the worker thread keeps serving the client)...and so on...
Yes you can, as long as you use 2 threads: one for reading and one for writing for both client and server.
Can you post the whole code? or at least a bigger snapshot?
16 years ago
...read the messages area: "No such method found: main" basically you either didn't write a main or it cannot be found!

If you post your code qould be much easier to debug!

Gio :-)
16 years ago
...I am waiting for people to start new topics...so that I can post :-)
16 years ago
Hi Miles,

and welcome to javaranch! :-)

Try surfing the SCJA forum, your question has been asked more than once, and I am sure you will find the right answer!

Gio :-)
16 years ago
Arpit,

I am so sorry you cannot afford the book, it is really a great one.

But I believe it's not nice to ask here for an illegal copy...also because the authors created this forum too...

Did you try to go to the public library in your city or maybe at your university?
Did you check in $JAVA_HOME/src.zip ? Mine is in there (jdk1.5.0_07/src.zip under Linux)
16 years ago

I dont know where to save it ,how to run it and how to set the path for environment varibles?



...you don't know where to post neither... :-D

Try buying HeadFirst JSP & Servlet, it will guide you step by step...
16 years ago
Lavanya,

I think you misunderstood the book: the key is that you can be in the same session for 2 different requests, as long as the requests come from the SAME client (browser), this is the definition of session!

If the 2 requests come from different clients (different browsers), then each client (browser) needs to have its own session, though 2 different requests coming from 2 different clients (browsers) cannot be in the same session.

I hope this clarified the doubt.

Gio :-)
Thank you so much Craig!!!

Gio :-)
16 years ago
Hi all,

I know how to generate a KeyEvent as if 'newChar' was pressed doing the following:


But I cannot use the same approach to generate a KeyEvent as if BACKSPACE was pressed:

...does not work.

Any idea?

Thanks in advance,
Gio :-)
16 years ago
Hey guys,

I don't want to be rude...but...I really wonder how and why people should ask for something like this!!!

Why even bother...it's a test, as any other test there is always the chance to pass without having no clue at all! :-)

I only hope people will not get into a development team passing a test simply being lucky!

Gio :-)
16 years ago
If you want to study seriously, you shouldn't care that much about "which one is easier".

Still, in the industry it will take a long long time before you have/can write code using Java 1.5...

I develop in Java in a leading edge technology company, and the JVM is Java 1.1 compliant...ok this might not be the "rule" but it does happen, if you want to take is slow, then go for the SCJP 1.4, when you feel comfortable with Java 1.5 you can always take the update from SCJP 1.4 to SCJP 1.5 (without paying the whole fee), if you want to do it faster, then study for the SCJP 1.5...if you don't care about Java 1.5, then simply go for SCJP 1.4.

Trust me...a bunch of Project Managers have no idea about generics and stuff...and most likely you will have to develop on JVM 1.2/1.4.

Gio :-)
[ July 22, 2006: Message edited by: Barry Gaunt ]
I agree with the previous poster, if you have been doing Java programming for the last 2 years, then go for the SCJP, after that (or before, it does not matter), if you want to have a broad knowledge of some other branches of Java, then take the SCJA.

Gio :-)
16 years ago