Kris Adams

Greenhorn
+ Follow
since Jul 02, 2004
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 Kris Adams

Hi Sanjay,
I read the HFS twice. A day before the exam, i went through the highlighted points in JSP, JSTL, security and patterns chapters. I did 4 - 6 hrs a day 3 weeks. All the best.

~Krishna
SJCP, SCWCD
Hi Ranchers,
Thanks for the postings which were of great help. It took 3 weeks for me.
I just followed HFS and gave first mock only a day before the exam, followed by 2 more tests on j2eecertificate and jdiscuss.
Thanks Bert, Bryan and Kathy for the excellent book. I will soon rush for HFEJB.

~Krishna
SJCP, SCWCD
Hey Bart
I guess too many tcp connections are open and thus the buffer space is full. Each time a heartbeat is sent , probably you are opening a new connection and its never closed. See if this helps!!
Hey J
I have a similar problem. I close the socketChannel using close() method. But socketChannel.isConnected() returns true. Can you tell me how to close the socketChannel so that the tcp connection is terminated.
I am using socket channel for communication (created as shown below). Each time i use it, i am closing by invoking socketChannel.close(). But this doesnt seem to be closing the tcp connection.

SocketChannel socketChannel = SocketChannel.open();
socketChannel.connect(new InetSocketAddress(ip, port));
socketChannel.configureBlocking(false);

Can someone sugg the right way to terminate the connection.
Did you look at apache commons threadpool. It might be helpful. Also doug lea's concurrent threadpool in 1.5.
see witscale.com, they discuss all the topics in the exam orientation. In Collections, look at hashcode, equals etc. Also try to understand the basic differences between each of them.

~SJCP
hey manish
Basic difference is when you invoke a thread, it executes in a new thread without interrupting the current one. For detailed explaination see any of the text books (when exactly run() is called and why not when we call start() etc).
In your example, second one is just a Thread object which doesnt do anything( you did not create a Running object which extends Thread).

~SJCP
Not all. but look at the substring methods, how each of them consider indices begin and end. Also understand how a string object is created in different ways and the differences between creating a string and a string buffer object.

~SJCP
The compiler wouldn't evaluate the condition in the if clause. So all it sees is that the initialization is done conditionally and thats the reason for the error.

~SJCP
Hey Sharanya
No. You dont have to declare the class abstract. It is exactly like a static inner class (associated with the class and not the instance).

~SJCP
Shruthi,
Also see witscale.com. It has 30 min mocks. More practise helps.

~SJCP
Hey Baban
good start. Thinking in java by bruce eckel has thorough explanation with example code snippets. I think it would give you good understanding of the concepts.

~krishna
16 years ago
Print the string and check if the contents are what the parser is expecting when it is deserializing it. I used dom parser for my protocol and it works pretty well. Also check the xml version tag when serializing it.

~Krishna
SJCP
16 years ago
This might work. Write the data length and then the data to the stream. When reading at the other end, read the length and then length num of bytes. If that much data is not ready, either block or timeout depending on your need. I did this in my stuff as i was sending varying length messages each time.

~krishna
SJCP