You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Roytman, Alex" <ro...@peacetech.com> on 2001/01/07 04:48:45 UTC

Xalan2 Stree Module spans second thread to do transform?

Dear Xalan developers,
I have a question about using upcoming Xalan2 in server env.  

In Xalan2 design specs it is said:

"The Stree module implements the default Source Tree for Xalan, that is to
be transformed. It implements read-only DOM2 interfaces, and provides some
information needed for fast transforms, such as document order indexes. It
also attempts to allow a streaming transform by launching the transform on a
secondary thread as soon as the SAX2 StartDocument event has occurred." 

In server environment server usually controls threads creation. In many
cases component should not attempt to create its own threads. 
For example thread's ContextClassLoader or ThreadLocal variables might need
to be initialized by the server.
Also it defeats thread pooling done by the server etc.

Could you please comment on this issue

Thank you very much in advance

Alex Roytman 

Re: Xalan2 Stree Module spans second thread to do transform?

Posted by Mikael St�ldal <mi...@ingen.reklam.staldal.nu>.
In article <51...@pt73.peacetech.com>,
"Roytman, Alex" <ro...@peacetech.com> wrote:

>In server environment server usually controls threads creation. In many
>cases component should not attempt to create its own threads. 
>For example thread's ContextClassLoader or ThreadLocal variables might need
>to be initialized by the server. Also it defeats thread pooling done
>by the server etc.

Perhaps the pooling issue can be solved if Xalan could reuse its
secondary thread for several transformations. Then you can pool Xalan
Transformers.

-- 
/****************************************************************\
* You have just read a message from Mikael Ståldal.              *
*                                                                *
* Remove "ingen.reklam." from the address before mail replying.  *
\****************************************************************/