swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] Re: Re: JAVA - XML etc


From: Saoirse Amarteifio
Subject: [Swarm-Support] Re: Re: JAVA - XML etc
Date: Mon, 26 May 2003 14:43:43 +0100

Thankyou, this has given my something to think about. 

It seems appropriate what you say about the async tree builder. The problem is 
in the documentBuilder.parse(File). I don’t understand about swarm re-entrancy 
problems and how to circumvent them with the tree loads - but i think that DOM 
parsing defaults to async mode, is this the problem?

regards

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: 25 May 2003 20:00
To: address@hidden
Subject: Support digest, Vol 1 #109 - 2 msgs

Send Support mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.swarm.org/mailman/listinfo/support
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Support digest..."


Today's Topics:

   1. Java (Saoirse Amarteifio)
   2. Re: Java (Marcus G. Daniels)

--__--__--

Message: 1
From: "Saoirse Amarteifio" <address@hidden>
To: address@hidden
Date: Sun, 25 May 2003 17:48:59 +0100
Organization: Eircom Net (http://www.eircom.net/)
Subject: [Swarm-Support] Java
Reply-To: address@hidden


Greetings

I am curious as to the limitations if any of swarm and using Java APIs. To give 
some outragous examples; if i was to use RMI or XML Dom in swarm, are there any 
issues i should be aware of.

I did try to read XML into a DOM object and the swarm app hung - to be more 
precise, i called a class that handled the XML which caused problems. I called 
the same class from a non-swarm app and there were no problems.

Is there anything i should be aware of - Also, perhaps related, is there 
anything interesting one should know about the allocation or deallocation of 
memory apart from the drop() method.

saoirse

--__--__--

Message: 2
Date: Sun, 25 May 2003 11:37:02 -0600
From: "Marcus G. Daniels" <address@hidden>
To: address@hidden
Subject: Re: [Swarm-Support] Java
Reply-To: address@hidden


>I am curious as to the limitations if any of swarm and using Java APIs. To 
>give some outragous examples; if i was to use RMI or XML Dom in swarm, are 
>there any issues i should be aware of.
>  
>
If there was some thread running to process RMI messages it's necessary 
that the thread does not attempt to call Swarm.  Instead, it should 
queue them up in a Java list (not a native one like 
swarm.collections.ListImpl), and the Swarm thread can later process 
them.  Same goes for GUI stuff or any other multithreaded situations.   
I've used the Java DOM implementation with Swarm before without 
problems, but it was a few years ago.   You could run in to problems if 
you use `async' tree loads, due to Swarm re-entrancy problems as above.

>I did try to read XML into a DOM object and the swarm app hung - to be more 
>precise, i called a class that handled the XML which caused problems. I called 
>the same class from a non-swarm app and there were no problems.

Do you have a test case that demonstrates this?





--__--__--

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


End of Support Digest



reply via email to

[Prev in Thread] Current Thread [Next in Thread]