Mike Vo

Greenhorn
+ Follow
since Jul 18, 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 Mike Vo

Thanks for help.

I wrote a server in DatagramSocket and have it listening on the port 514@localhost.

However, got message:
java.net.BindException: Address already in use

Seems like port 514 has been locked up by the syslogd. Is there a way to get around and have my serevr accept system logging?
17 years ago
Instead of parsing local system log files, is there a way to have Java program accept Unix system logging info directly?

Thanks for your help.
17 years ago
I am working on a project that requires upload real time unix system logging to a remote database server.

Can I develop a socket to accept info from local client? I am concerning too many connections.

Also I am thinking about parsing local system log files and send to remote db server.

Is there a way to let the Java Program accept Unix system logging directly?

Thanks for your help.
17 years ago

I think Lou Dobbs should Apologize!





AT&T to Cut About 7,400 Jobs

and more to be announced.
17 years ago
Thanks for all your replies.

I was trying to understand how String object gets created.

As mentioned in the K&B's book: "When the compiler encounters a String literal, it checks the pool to see if an identical String already exists. If a match is found, the reference to the new literal is directed to the existing String, and no new String literal object is created."

Actually, Rakesh's code gives: "a and b - same obj", which makes sense to me. However, I am still wondering in my code why z is not refering the existing "abc" in the pool.
Running the following code gives "x and z - different obj", which I don't understand. Thanks for help.

My understanding is z would point to the same String obj "abc" in the pool as x does.

-----------------------

String x="abc";
String z = "ab";
z = z + "c";

if(x == z) System.out.println("x and z - same obj");
else System.out.println("x and z - different obj");

-----------------------