Prasath Thirumoorthy

Ranch Hand
+ Follow
since Jul 23, 2004
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 Prasath Thirumoorthy

Hi friends,

I know the difference between web server and application server.

web sever - serves html web pages i.e serves static pages.
App server - It provides the middle ware components like security/transaction management, load balancing etc and also serves web pages too.

But still i am not clear with:
What is the significance of Web Server which is present inside the Application Server.

Thanks & Regards,
Prasath Thirumoorthy
16 years ago
Hi Friends,

Using Ant build script how to get the latest version from VSS.
I tried using the Map Network Drive and running the ss.exe in the ant script.

But i couldnt write the script successfully.
Please provide me with some tips.

Thanks & Regards,
Prasath T
Hi William,

While I was exploring about Java Caching System (JCS), I came across lot of open source and commercial Object Caching frameworks,

Open Source
1.Java Caching System (JCS) from Jakarta (part of the Turbine project)
2.OSCache
3.Commons Collections (another Jakarta project)
4.JCache API (SourceForge.net)

Commercial
1.SpiritCache (from SpiritSoft).
2.Coherence (Tangosol)
3.Javlin (eXcelon)
4.Object Caching Service for Java (Oracle)

Anyway I prefer Open Source only, among those open source frameworks, I hope OSCache sounds better in terms of clustering, serilzation and other caching elements.

Could you please tell your suggestion on the same.Now I am in a bit confusion which to choose ?

Thanks & Regards,
Prasath
17 years ago
Hi William,

Thanks for your kind reply.
Ya sure I will keep update about my work.

Just started digging deep and exploring about JCS.
How to plug-in into my current application.

Thanks & Regards,
Prasath
17 years ago
Hi Friends,

Thank you very much for your replies.
JVM memory is already increased to a optimized size.

Actually we are not loading a simple combobox contains which contains list of countries.In Banking application scenario we are loading the costdetails, product details,severity details to calculate the economic capital.

Application is developed using Java and Swings.So the data retrieved from the database not only used to display in the page and also used to do some calculations which is needed in the background.

while starting the Server these details all retrieved from the database and stored in a HashMap.In future wherever the data is needed its retrieved from this HashMap, this is implemented using singleton pattern.

Because of this huge data get stored in hashmap, its taking time for loading while the server starts and occupies JVM Memory.

I thought to have a remote server for loading these cost details inorder to reduce the load in the main server.

I gone through some documentation of Apache Java Caching System using Remote Cache.

Whether this suitable for my problem.Please guide me

Thanks & Regards,
Prasath
17 years ago
Hi Friends,

Whenever I enter a record in the database through my application.i.e. By capturing the data through the application and when I click Ok button in the screen it will insert a record in a particular table.

I have report application which running on tomcat which retrieves the data and show as a report.I showing this data in a jsp page.

When I click on the refresh button of IE the newly entered record is not displayed in the report.I need to explicitly close and/or open a new IE window then the newly entered record is displayed in the page.

Please tell me how to avoid this open a new window for each new record.I want to see the data in current window itself by clicking refresh button in the IE

Thanks & Regards,
Prasath
17 years ago
JSP
Hi William,

Yes,I am storing the raw data. i.e I am just retriving the data from database and put it in the hashmap and from hashmap I retrive it and load the combobox.

The hashmap which contains the table name as keys and their rows as values
It retrives all the values say 10 tables their records more than 300 approximately and load the hashmap when the server starts.

Whether we can use other than hashmap for cache implementation which occupies low memory than hashmap ?

Thanks & Regards,
Prasath
17 years ago
Hi Friends,

I am very much happy to inform you.I have successfully cleared the SCJP 1.4
And special thanks to JavaRanch and Ranchers which inspired me a lot.

Now moving for SCWCD 1.4 with more inspiration.

Thanks & Regards,
Prasath
17 years ago
Hi William,

Thanks for your kind reply.

The performance issue i mentioned is because of the large memory occupied in the server. as a result , the server response is slow and as per the end user , the application is something near to HANG..So can you please provide me some data caching solutions or using some proxy design solution and the implementation of that..


Thanks in Advance ,
Prasath
17 years ago
Hi,

Thanks for your kind reply.

Sorry for that I have not clearly pictured the problem which made it you to misunderstood the problem.
I am not caching the transactional data.Caching only the static data which can be changed through the application.

Static data is keep growing in the sense that for eg say initially we are showing 100 products in the combobox in the application.After some time there are some new products coming as the requirement enhancements.
So what we do means again we reloading the static data i.e the product table with say 200 new products.Now finally we show 300 products in the same combobox like this same scenario we have around 10 tables where we are loading the static data when the application starts.

Now its becomes an performance issue in the cache due increase in size of the static data.No problem with transactional data.

Could you provide me with some optimized (mechanism)solution for the same.
Provide me with some links where i can find some enough information.

Thanks & Regards,
Prasath
17 years ago
Dear Friends,

Currently In our application we have the performance issue due to data loading while the application starts.

Currently we load all the data from the tables say n which is needed when the applications starts.

for eg: loading the Country combobox to choose specific country of the customer.

we load all the data from tables and load it in the hashmap when the applications and its retrieved from it wherever is needed.

Since the data is large now its becomes an performance issue.

Please help me by providing some ideas or links to do best practices of data caching mechanism or loading these data in a dedicated separate remote server to increase the performance of the application server.

Thanks & Regards,
Prasath
17 years ago
Hi Friends,

Using the java.util.zip api we can zip the file.But the thing is I need to zip the file along with password protection.

Could you please guide me on the same.
Let me know is there any other API to do this or we can solve it using java api itself.

Thanks & Regards,
Prasath Thirumoorthy
17 years ago
Hi Folks,

Polymorphism can be acheived by two means:
1.Inheritance is-a relationship
2.Aggregation has-a relationship

Inheritance is achieved by extending the existing class using the extends clause and Aggregation is by declaring a object of a class as a member in another class.

I need some clarifications on when and where to use inheritance and aggregation.

Please provide me with some examples and explanations.

Thanks & Regards,
Prasath T
17 years ago
Hi Friends,

please provide me some clarifications:

1. Map mobj = new HashMap();
2. HashMap mobj = new HashMap();

What is the difference between the above two Initializations ?
Which is best way of programming ?

Cheers,
Prasath Thirumoorthy
17 years ago
Hi Folks,

Mostly I done jdbc connections using thin driver only.
This is first time I am using OCI Driver type since some of the data type is in BLOB which is not supported by thin driver.

When I tried to get the connection using OCI Driver.
I got an SQLException: Closed Connection

Thanks & Regards,
Prasath Thirumoorthy.