muthu muruges

Ranch Hand
+ Follow
since Feb 28, 2003
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 muthu muruges

How to use Socket Handler of java.util.logging package. Do we need to write a SocketServer to receive the LogRecord from SocketHandler or java itself provides SocketServer implementation to log the records?
Hi,

I am using java logging API in my code to print the traces. My configuration has log file count as '3', 'Append = true' and maximum log file size is '100MB'. There are multiple process are running in my machine, becuase of that more log files are getting generated. How to make the logger sharable between these processes so that only 3 files can be maintained at time. Any quick help will be highly appreciated.

Thanks,
Muruges
Thanks for the update.

Here is the code


Some times I am getting my error message "Can't find class StorageContainerController".
I don't believe it occurs because of the incorrect classpath. If classpath is the root cause then I would have hit this issue in all of my tries.

The classpath key is correct.
[ February 16, 2005: Message edited by: muthu muruges ]
15 years ago
Hi,

I am invoking java methods from 'C' using JNI. For me the FindClass method returns '0' (zero) even though the classpath is set properly. I have set the classpath using vmargs.options, in that option string I am passing the classpath as "-Djava.class.path=<myclasspath>". The above error is not consistent, many of the times it is passing. Can you help me please to identify the root cause of this error?

Thanks,
Muruges
15 years ago
Hi,

How to find out locked tables' name and the query that locked that table in mysql? Is there any command to find out?



Thanks in advance,
Muruges
Hi,

My application has 5 processes, each of the process are accessing datbase using JDBC. Which JDBC framework will take care of managing connections across the process?, if the framework is running as a server and provides client API to access the server methods(like RMI) then it will be really good.

Thanks,
Muruges
Thanks for the post. The leak is in my 'C' code only.

Thanks again,
Muruges
15 years ago
Hi,

I am accessing java from my 'c' code using JNI. My daemon is leaking memory in the JNI part. It looks like the GC is not running in the JVM. Please let me know how to fix that. I am using threads in 'c' code.

Thanks,
Muruges
15 years ago
Hi,
I am having binary(digest using SHA1) value in byte array. I want to store it in to database. The database column type is BLOB(Mysql). I thought of using setBlob method of PreparedStatement, but the Blob is an interface So I coulnd't create the instance for that.

How to create Blob instance in java, any standard implementation is available?

Please let me know if any other option is there other than Blob columns to store binary values.

Thanks in advance,
Muruges
Thanks for the update.

I solved the problem thru' privileges setup in mysql.

The query is:
grant all privileges on *.* to '<username>'@'%' with grant option;

Here the '%' means that mysql allows connection from any host.
java.sql.SQLException: Data source rejected establishment of connection, message from server: "Host '10.200.16.237' is not allowed to connect to this MySQL server"

I am getting the above error when I am trying to access the MySql database which is running in a linux machine. My JDBC code is running in windows 2K machine. Mine is an application only not an applet.

Please let me know how to solve this problem.
is it possible to create an instance of a class without invoking its constructor?
16 years ago
Hi,

any open source JDBC3.0 complaint connection pool managers exists?, I want to use that in my java application(not a web based one).

does the Commons-DBCP component (from jakarta project) JDBC3.0 complaint?

Thanks,
Muruges
what about in MySQL?,

I would like the locking query should work for the following scenario,
1) Having one DB connection
2) lock some rows by one thread
3) using the same connection lock some other rows by the second thread
4) release the lock aquired by the first thread, during this lock relase the second lock should not get relased
5) release the lock aquired by the second thread

is there any row level readlock or writelock exist in MySQL?