krishna Karthikk

Ranch Hand
+ Follow
since Mar 16, 2010
Merit badge: grant badges
For More
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 krishna Karthikk

Hi everybody, thank you for your replies. I found some problems with triggering model. Now I decided to do it using a time based job. I ll write a java program which continuously looks into the table for new records for every 5 minutes.

But for now, I want to start from the beginning, Actually I am working on a GSM application where 2 programs will be running on the system. One for receiving the messages and storing in the database. One for sending the replies.

The first part has been finished. Note, here the 2 applications are different. I mean 2 main()'s. So whenever a record is inserted the sender application has to some how know the insertion. Which is a tedious task. So I decided to go for Time Based Job.

Thank you all for the valuable replies. Have a nice day.
Hi everybody, I am Krishna, I want to connect to usb port using java on windows. For this I have downloaded the jsr80.jar. I downloaded some examples and written a Sample code.

Every time I run the code I am getting an error "Properties file javax.usb.properties not found".

I have this file with me. I tried to paste it in the jre/lib/ext. But the attempt failed. I created a classpath variable and failed. Then I configured the class path with eclipse and failed.

I don't know what to do and how to do. Can anybody help me?

Thank you all in advance. Have a nice day.
13 years ago
Hi Ernest thank you for the reply. Can you please tell me how to do the same thing with mysql database because its a free ware. I cant go for oracle.

Thank you in advance. Have a nice day.
Hi Martin, thanks for your help from beginning. I have refered the links you have posted. Truly speaking, I did not understand the content there.

I want to try my level best. In the worst case I am thinking to go for a timed batch job.

Anyhow thank you.
13 years ago
Hi everybody, I am krishna, I am coding or an application where I need to execute a function or get a notice on command prompt or play an alarm whenever a record is inserted into a table.

The records will be inserted into the table from another java application running somewhere on the network.

Is there any such Database Table Listener.

Thank you all in advance. Have a nice day.
Hi Martin, I am using MySql database. Can you please tell me in some detailed way on how to do this.

Thank you in advance.
13 years ago
For this I have to write something like a database listener, can anybody please tell me how to do this?

Thank you all in advance.
13 years ago
Hi everybody, I am Krishna, I am working on a GSM application. The aim of this project is to send messages to mobiles on request. Somewhere a user will be requesting for some details in a specified format say "RESULT ROLL_NUM" for his/her results.

As soon as the message is received the java application will read the message and save a record in the database.

Up to this I have done.

Now the thing is I need to send the reply. All details will be saved in the database. What I want to do is I want to write an entirely new application which continuously looks into the database for any new records. As soon as it finds a new entry it must build the necessary reply and text the sender.

I can write this whole code in the Reader application itself, but due to performance I want to shift it to an entirely another program.

Is this the right way? Or I should code the entire thing in one application.


Thank you all in advance. Have a nice day.
13 years ago
You cant do two things from one servlet. I mean the servlet must serve the data (text) and image. This is not possible.

I used to follow this method, I dont know how far it is appreciable, but it works fine for me. If this is wrong please anyone tell me that I am wrong.


Save all the images in your application, in some directory. If the user is uploading the images to the server those images must be saved in the application itself. So you have to work on this.

Then while sending the response use an image tag which points to the save path.

Have a nice day
13 years ago
Hi Pamir, I think client side validation is not effective and is not going to free the server some what. In my view validations must be done in server side. Why because, consider a situation where the client disables java scripting. Then what is the state of the data in database. Some corrupted or incorrect data is saved.

So one must validate data on server side even though he validates it at client side.

Please tell me if I am wrong.

Have a nice day.
13 years ago
Thanks a lot all of you. I concerned my friend once again, the point is,

If my class has to be initialized, then the main method should be accessed using an object. If there are two instances of main method the jvm will confuse. If the main method is declared as static then only one single copy of main exists. This is what I understood. Is this right?

Thank you all in advance.
13 years ago

Paul Clapham wrote:
You mean that java.exe should create an object of the X class and then call that object's main(String[]) method?

Then there would have to be some rules which allowed java.exe to create an object of the X class. You'd have to make a rule that every class to be executed via main(String[]) would also have to have a zero-argument constructor, so that java.exe would be able to create an object. Or something like that.

That seems like an unnecessary complication to me. Sure, they could have done that. But why would they?



Hi Paul, I understood the point you said. Thanks for the reply.
13 years ago

Ulf Dittmer wrote:What is "the program" if the JVM is started through the "java" command (which is not implemented in Java)? How would it get hold of an appropriate object?



"The program" means some underlying java program, I mean the java.exe program.
13 years ago
Hi Campbell, I already know that, but some one said there is something else.

Why can't the java developers code in this way, so that, the program can create an object and call the main method.

Is there any other meaning?
13 years ago
Hi everybody, I am Krishna, suddenly I got a doubt, why main function is declared as static. I know that java calls the main function using the class name. If a method has to be called using class name it must be declared as static. So we declare main as static while coding.

The java developers can initialize my java class and call the main method using an object. Why they designed the architecture in this way. Is there any specific reason. One of my friend said that if we declare a function as static it will have only one copy n the memory and something. I did not understand that.

Can anyone tell me why main is declared as static?

Thank you all in advance. Have a nice day.
13 years ago