H Gokulam

Ranch Hand
+ Follow
since Nov 04, 2003
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 H Gokulam

Originally posted by sravanthi yendluri:
My servlet was compiled when I kept it directly in C:\ drive.



You need to put your class file into the corresponding directory in tomcat. WEB-INF/classes directory
15 years ago
Hi Bear Bibeault,

Thank you for your quick reply.
About your comment about my name, I am not using any fictious name. It is my real name. Hari is my first name and 'G' stands for Gokulam, which is my last name. I don't understand why you have a problem with that.

And for your information, I was able to get the scanned data into the JSP, without running any program in the client pc. I managed with an additional textbox. But I need to find a better way to fire an event to indicate scan is over.

Regards,
Hari
[ June 29, 2006: Message edited by: Hari G ]
17 years ago
JSP
Hi All,

I have a barcode scanner connected to my client PC. I would like to get the scanned information in the JSP. What is the best way to do this ?

Regards,
Hari
17 years ago
JSP
Stan,

Very good idea. This something we never thought of. Thanks a lot.
Hi Nuthan,

Sorry for sending a reply without reading your question properly. You are right, org.jdom.Document implements Serializable. So, that is not the reason.

Reason for the error could be different versions of org.jdom.Document in the Client and Server. Try to use the same jar file (which contains org.jdom.Document) for server and for client.

Regards
Hi Nuthan,

Only Serializable objects can be used in method 'createObjectMessage'. Just by typecasting a non-serializable object, you will not achieve this. The following statement just avoids the compilation error. But if 'doc' is not serializable, you will get runtime error.

ObjectMessage msg = session.createObjectMessage((Serializable)doc);

Regards,
Hello Karthika,

Can you tell us, what kind of error you are getting ?
Please post the actual error message.

Regards,
Hi,

The question is simple. How do you identify these 2 case ?

1. Internet connection lost and the same user trying to login.
2. second person trying to login with same user id

Only the client browser can provide details like 'Internet connection failure' to the server. So 'Cookies' is one of the options (or only option).

Regards,
17 years ago
We also thought of JMS as a solution. But we believe database is the right solution, but with little bit of fine tuning.

Regards,
Hari
[ February 19, 2006: Message edited by: Hari G ]
Hi Stan,

Thank you very much for your suggestions. We are working on it.

Hari
Hello Stan,

Most of our pages used to take the data stored in the Singleton for allocation , monitoring etc. The performance is an issue in case of the database solution. We are not in a position to change all these access to Singleton data, even though some of them can be removed.

We are trying to keep the changes only in this Singleton class. One solution could be to keep the data in Singleton class as well as in the database. But then there should be a mechanism to update the Singleton classes in different JVMs, whenever a change occurs in the database. May be a thread, which keeps checking the DB for any changes..........
Thanks for the replies.

We are using it mainly for keeping track of the transactions (which are pending for authorisation), online users etc.

Currently we have implemented a solution using database. But we need to find out a better way.

Thanks
How can we implement clustered singleton ? I am using a singleton class in Tomcat. Now we are planning to have clustered servers for the same application. How can I achieve the same functionality in clusetered environment ?

Hari
Hello,

j2ee.jar has it. You can download it from following location

J2EE Download from Sun
Have a look at this.
SCBCD Links