aspose file tools*
The moose likes Servlets and the fly likes Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Threads" Watch "Threads" New topic
Author

Threads

Haneef Basha
Greenhorn

Joined: Aug 07, 2007
Posts: 1
when the thread is started?
Carl Wauters
Greenhorn

Joined: Aug 02, 2007
Posts: 19
After the container had found the servlet the client requested and it had created an HttpServletRequest and an HttpServletResponse object. Those objects will be passed as arguments in the service() method if the init method of the servlet is completed.

Regards,

Carl


SCJP 5.0, SCWCD 1.4, SCBCD 5.0, SCJD, SCDJWS 5.0, SCEA/OCMJEA 5
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Haneef Basha:
when the thread is started?


Are you asking about threads in server to server client request or java threads in general ?


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Haneef Basha,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
TellTheDetails

Your question is impossible to answer without more clarification from you as to what you're talking about.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tony McClay
Ranch Hand

Joined: May 22, 2003
Posts: 33
>> when the thread is started?


Well in reality there is no way of telling. The Specification is empty on when the thread is created, and leaves this up to the people who are building the Servler containers. They may find optimized ways of do this to fit thier purpose.

In general, from the programming model, we should not need to know this, only use the functionality from our abstract layer http.servlet layers.

Now.. You may be able to ask your vendor this question or if it is an open source container, go look at the code yourself.

I am curious... what is the root of your problem, that you need to find out when the thread is created?


Tony
Sun Certified Web Business Component Developer
Sun Certified Web Components Developer
Sun Certified Programmer for the Java 2 Platform


Tony McClay<br />Architect / Developer, SOA and Jave Enterprise Edition 1-5<br />---------------------------------------------------------------------- <br />Sun Certified Enterprise Architect, Enterprise Edition 5 (Step 1 of 3)<br />Sun Certified Web Component Developer, Enterprise Edition 4<br />Sun Certified Business Component Developer Enterprise Edition 5<br />Sun Certified Programmer , Standard Edition 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Threads