What you're looking for is a Serializable DOM implementation. I think that the most compact way to represent a DOM object tree is XML itself. So why not create a simple wrapper class for Document that would implement the java.io.Externizable interface that would read/write the representation as XML in a String or byte[]...
Peter On Thursday 08 November 2001 03:45, karuna prasad wrote: > hi > > i have a problem regarding object serialization. > > I have a client. In the client i parse an xml form to get DOM. > I wanted to manipulate this DOM inside the session bean. > > Is there any way to do this. > > It is giving NotSerializableException when i try to pass the Node > to the session bean. > > I tried another way also. I created DOMSource class with the Node as a > parameter > to the constructor. I then tried to pass the DOMSource to the session > bean. > It is still giving the NotSerializableException. > > When i saw the DOMSource class it says that it extends Object and > implements Source Interface. > So i am not able to understand why it is giving that exception > eventhough DOMSource extends > Object. > > Could anyone suggest solution to my problem. I want to parse the XML > form in the client > but manipulate the obtained DOM inside the session bean. > > thank you > Ammireddy Karun > > > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
