Welcome! Log In Create A New Profile

Advanced

Any Web Tier Experts Out There?

Posted by Henry 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar Any Web Tier Experts Out There?
January 07, 2008 01:27PM
I need some help.

I am writing a Servlet to process transactions from mobile devices, and was wondering if it is necessary that I create and run the Transaction component on a separate thread from the Servlet thread to prevent the Servlet from being tied up for the whole transaction.

Any help appreciated. I am looking for some info on the web and also have some books to go through, but I was just lazy as all developers are and thought to ask first.

Cheers.
avatar Re: Any Web Tier Experts Out There?
January 07, 2008 04:14PM
I'm no expert, not even a junior developer. All I can say is that it looks like you already have the answer to your question. To be safe, maybe do what you posted " run the Transaction component on a separate thread from the Servlet thread to prevent the Servlet from being tied up for the whole transaction".
Re: Any Web Tier Experts Out There?
April 28, 2009 08:41PM
if you are writing jee you should not be threading at all.

servlets are static and served out of a pool (of threads) so you should be ok. if you want more capacity you add more execute threads to handle incoming requests.

someone let me know if i am speaking untruths.
Sorry, only registered users may post in this forum.

Click here to login