1) With the new DTM work we're doing, hopefully to be committed to the main
branch next week, if you use Xerces we will no longer need to use threads,
and instead take advantage of the parseNext feature in Xerces.

2) Costin has done some good work with thread pooling and a way to hand in
a thread so we can be EJB complient, if you are using a parser other than
Xerces, or are feeding in SAX events through a pipeline.

3) We'll have a way to turn threading off.

So all I can say is, for right now, stay tuned...

-scott




                                                                                       
                            
                    Matthew                                                            
                            
                    Cooper               To:     [EMAIL PROTECTED]              
                            
                    <matty@cognow        cc:     (bcc: Scott Boag/CAM/Lotus)           
                            
                    orks.com>            Subject:     xalan creates threads and so is 
not ejb compliant???         
                                                                                       
                            
                    05/28/2001                                                         
                            
                    08:00 PM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    xalan-dev                                                          
                            
                                                                                       
                            
                                                                                       
                            




I am using xalan within an ejb server (jboss in fact). I have hit a problem

whereby I have a URI resolver on the transformer to resolve document()
calls.
When the resolver is invoked by xalan it is not the same thread that the
transform method was called with. This causes me two problems:

1 - I cannot use any callback methods to my ejbs as the server now sees a
different thread running and so makes that thread wait until my main thread

finishes. Unfortunately, that is the thread transform was called with so it

waits indefinitely.

2 - If xalan is creating threads (it could be creating other ones too in
there somewhere) then using it violates the ejb spec as you are not allowed

to manage your own threads.

I think I read that future ejb specs may have the server providing xml
facilities and so this may go away as an issue (for me the user - xalan
would
still have to address any compliance restrictions imposed by the spec), but

in the meantime, is there a way to invoke xalan that ensures it will use
the
caling thread throughout?

Thanks, Matty.
Cognoworks Inc

btw - posting this to dev list as there does not seem to be a user list.




Reply via email to