Balaji Ramalingam

Greenhorn
+ Follow
since Nov 08, 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 Balaji Ramalingam

Irrespective of the hibernate.jdbc.batch_versioned_data being true or false, I am getting StaleObjectStateException. Any one know about the purpose of hibernate.jdbc.batch_versioned_data flag in hibernate.cfg.xml file?

Hi Ben,

I tried with all the meta tags with no cache headers. But that did not work out.


If that didn't work, I would modify the links to the JNLP page to make sure that they are always unique.



Could you please elaborate a bit more on this?


Thanks,
Balaji
15 years ago
Probably, I understated the problem. We were trying to download a jnlp file when user enters a URL. JNLP File is an XML Document. We have an attribute max-heap-size as part of a tag in JNLP File. When user hits a URL, we got to download the JNLP File. But before downloading to client, we got to modify the max-heap-size attribute if there was any user entered value for it(we have a separate gui where user can enter memory heap that client want to use).



So, whenever user hits the URL, http://IP:PORT/Test we would download the JNLP file. We are doing post processing using a Filter to modify the response provided by JNLPDownloadServlet(provided by javawebstart) to make use of the user entered max-heap-size value.

For the first time, it works fine. But when i modified the max-heap-size thru the gui (same web-app with admin previlege) and tried to download this jnlp file, it was still using the same file. I found that it was not hitting the Filter every time.

As we are always requesting for a resource(Test.jnlp that is not at modified) I observed that HTTPServer caches the file and not at all forwarding the request to WebServer. Only if the request is forwarded to the webserver, it would try to download the jnlp file again.

As the resource is already cached and available with HTTP Server, request is served by HTTP Server. So, I introduced a servlet to solve this problem.

Thats where the proposed solution comes to picture.




So, From HTTP Server perspective, we would always be trying to execute a servlet and not a resource, so it is not caching the jnlp file. It always hits the servlet This solved caching problem.


Let me know if there is any drawback in this approach.


Thanks,
Balaji



15 years ago
I faced a problem of IE caching the JSP Pages. I tried to solve this problem by introducing <meta tags in JSP but that did not work out. I found that there was a new feature that is introduced as part of servlet 2.4 spec. - using servlet in welcome-file-list in web.xml.

So, introduced a servlet and gave that as an entry in ><welcome-file>



Does any body see drawbacks in using a Servlet as Welcome-file? Please let me know...


Thanks,
Balaji
15 years ago
In application.xml, i have the following piece of code. Can we have the same war with two different context-root?
15 years ago
JSP
According to my understanding, top level class will not have any super class.

Where as super class can have another super class.

hope it helps.
I am glad on clearing SCBCD with 94%. Thanks to Kathy and Bert on the wonderful book which made it easy for preparation and understanding of concepts in a much better way. I personally thank this forum and all ranchers whose doubts helped me on getting things clear.

Regards
Balaji R
SCJP 1.4, SCBCD 1.3
17 years ago
Hi All,
I have started preparing for EJB Certification. Using all your guidance regarding the study material, I bought HFEJB . I am not currently making use of EJB now at my work. Is the work experience a must to make a big hit, or HFEJB would be suffice... ?