opensubscriber
   Find in this group all groups
 
Unknown more information…

u : users@avalon.apache.org 8 November 2004 • 12:50AM -0500

Phoenix's DefaultThreadPool
by Igor A. Deruga

REPLY TO AUTHOR
 
REPLY TO GROUP






Dear fellow programmers!
I have a piece of code that uses phoenix classes. But it doesn't work as it is
supposed to (to my mind):
//--------------------------------------start of code------------------------
System.out.println("Trying with max="+new Integer(max_threads).toString()+
"and min="+ new Integer(min_threads).toString() + " and name=" + name);
try {
final DefaultThreadPool threadPool = new DefaultThreadPool(name,
min_threads, max_threads);
System.out.println("Created a DefaultThreadPool instance.");
//--------------------------------------end of code------------------------

This code produces the following output:

//--------------------output--------------------
run:
     [java] hello!
     [java] test
     [java] Starting the server
     [java] Trying to create factory.
     [java] Classloader has been retrieved.
     [java] Creating new instance.
     [java] Trying to create factory.
     [java] Classloader has been retrieved.
     [java] Creating new instance.
     [java] Getting server socket factory
     [java] Prepared a SocketFactory
     [java] created insecure sockets
     [java] Executing overloaded "connect" method.
     [java] Initializing ThreadManager!!!!!!!!!!!!!!
     [java] Configuring ThreadPool
     [java] Trying with max=100 and min=20 and name=default
BUILD SUCCESSFUL
Total time: 4 seconds
//--------------------end of output--------------------

Which means that it enters DefaultThreadPool constructor and... the program
exits. :(
The question is: WHY?!

It's  my fault, probably a small misspelling.... but where?

Sincerely
Igor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@aval...
For additional commands, e-mail: users-help@aval...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.