DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11696>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11696

[event] Thread pool never set in worker thread

           Summary: [event] Thread pool never set in worker thread
           Product: Avalon
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Excalibur
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


see comments in code:
[From DefaultThreadPool:]
    public DefaultThreadPool( final String name,
                              final int capacity,
                              final ThreadContext context,
                              final int timeout)
        throws Exception
    {
        super( name );
        // creates a pool which calls the newInstance() method below
        m_pool = new BlockingFixedSizePool( this, capacity, timeout );

        m_context = context;
    }

    public Object newInstance()
    {
        final String name = getName() + " Worker #" + m_level++;
        ThreadContext context = null;
        if( null != m_context )
        {
            context = m_context.duplicate();
        }

        final WorkerThread worker =
            new WorkerThread( this, name, m_pool, context );
        // m_pool instance is still null, so the worker can
        // never return itself to the pool upon finish and the pool
        // will run empty
        worker.setDaemon( true );
        worker.enableLogging( m_logger );
        worker.start();
        return worker;
    }

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to