File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Other Application Frameworks
Method invocation taking time
Joined: Apr 11, 2007
Aug 17, 2008 06:16:00
I am calling DAOImpl method in BO using bo-factory dependancy injection context loader.
I am calculating time of invoking method. I am printing time in console in BO before calling DAOImpl method and then printing time at the start of DAOImpl method.
it using another thread class which will invoke BO's method which will invoke DAOImpl's method.
I've specified 50 thread in my testing class.
So the method invocation time calculation as follows -
1 - 10 approx 1 Second
11 - 20 approx 2 Seconds
21 - 30 approx 3 Seconds
31 - 40 approx 4 Seconds
41 - 50 approx 5 Seconds
I want that it should not take more than 1 second no matter how may instances are getting called of that DAOImpl.
How can i stop this time consumption taking by DAOImpl method invocation.
Any help would be appreciated.
Thanks in advance.
I agree. Here's the link:
subject: Method invocation taking time
Interrupt, Interrupted and isInterrupted
limit of connections with database and number of java threads in an application
Thread Wait Issue
Threads and Synchronization examples
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015