Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Basic threading concept

Thread view: 
Abhi - 05 Jun 2007 08:12 GMT
Hi,
I have a basic question about threading in regard to application
servers.
Nowadays almost all servers implement pooling concepts.

My question is :If my app server is delegating user requests to
separate instances of my class then why should I need threading at
all?

regards,
Lew - 05 Jun 2007 13:03 GMT
> Hi,
> I have a basic question about threading in regard to application
[quoted text clipped - 4 lines]
> separate instances of my class then why should I need threading at
> all?

You don't need to code explicitly for threading, but you need it or the app
server can't use it.

In most cases in an app server, e.g., Tomcat, you should not explicitly spawn
new threads.

Signature

Lew

Richard Reynolds - 05 Jun 2007 22:46 GMT
> Hi,
> I have a basic question about threading in regard to application
[quoted text clipped - 6 lines]
>
> regards,

You don't, normally the application server is doing the threading for you.
If you're writing your own server then you likely will need it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.