Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

apache - Sharing variables across multiple sessions -


i know cannot have global variable in backend code (java or php or else) , have different users (and hence sessions) see same value. if need share values across these user sessions need write them db , read out every time. seems awfully wasteful me.

i understand apache process (or app server) fork , having global values not work if looking @ specialized application there web server lets me this? should possible in web server uses threads instead of forking processes. if need share global memory need have kind of locks access them. understand (and will) buggy degrade performance compared db?

thoughts?

  • pav

i'm not sure that's entirely true. apache handle each user connection individually - correct. however, know in java possible have singleton object exists life of application, in potentially store values used across user sessions.

when handling each user connection on server side, each access singleton access same object - therefore same values.

you might want more research application scope objects well. i'm not sure you're trying achieve due lack of use case, may find java web apps can more expect in area.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -