This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
hi all, my code works in the following manner. i have a central controller which is a servlet. i am using the model 2 architecture (MVC) pattern. all request go to this servlet which sees in the properties file and calls the corresponding business object(logic which is a class). This class returns a XML file which i have to display on the browser. my problem is suppose another request comes before the earlier xml file is thrown on the browser, then this file is replaced. i thought of placing this file in the session.. Is there any other better way to do this.. Certainly all u champs out there can help me on this.. Thanx in advance Chhaya
I was just wondering, so you must be having some kind of code like this... void someMethod(){ try{ id= request.getParameter(<something> ); BusObj busObj = busobjHash.get(id); ... //render it on browser using //requestdispatcher?
} one simple solution could be to synchronize someMethod() so that all the requests are sent in a serialized manner But this will bring down the performance? prav.
Originally posted by Chhaya Dhanani: hi all, my code works in the following manner. i have a central controller which is a servlet. i am using the model 2 architecture (MVC) pattern. all request go to this servlet which sees in the properties file and calls the corresponding business object(logic which is a class). This class returns a XML file which i have to display on the browser. my problem is suppose another request comes before the earlier xml file is thrown on the browser, then this file is replaced. i thought of placing this file in the session.. Is there any other better way to do this.. Certainly all u champs out there can help me on this.. Thanx in advance Chhaya
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.