How can I know an application(JEE or Stanalone or any java application) is single threaded or multi threaded?.How a multithreaded application behaves? ,How singlethreaded application behaves?.All JEE application are multithreaded?,all stanalone applcation are single threaded? Please excuse if this question is silly, [ September 26, 2008: Message edited by: jacob deiter ]
As an aside, even if the the code of an application is not explicitly multi-threaded, the JVM has always a number of threads active. For example, garbage collection runs as a background thread.
for an example,I deployed a simple POJO that retrieve value from database,layers are service layer(POJO),DAO Layer. if many user access the POJO at the same time then what will happen Subsequently,How the server serve the many users?.If the server do mutithreading means the entire things (service layer-pojo and DAO) is threaded ? [ September 28, 2008: Message edited by: jacob deiter ]
for an example,I deployed a simple POJO that retrieve value from database(service layer-POJO,DAO). if many user access the POJO at the same time then what will happen Subsequently,How the server serve the many users?.If the server do mutithreading means the entire things (service layer-pojo and DAO) is threaded ?
What is the context you are talking about? A client application you wrote? A JEE application?
Originally posted by jacob deiter: JEE application
Typically the JEE application will be multi-threaded. That means you should make sure your POJO and DAO (and all your other code) are thread-safe or accessed in a thread-safe manner.
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.