How to pass XML Document from one EJB to another EJB?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jayakumar_Gopalan
Posted On:   Tuesday, April 24, 2001 07:38 AM

Hi All,
While trying to pass XML Document from one EJB to another EJB, I got NotSerializableException? Later I found that org.w3c.dom.Document is not serializable. Then I thought I can convert the xml to string and pass it. But I couldn't find any API's for directly parsing the xml string (I am using JAXP). Since it is not possible to use IO classess in EJB, can anybody suggest me any alternatet ways to do this.
Thanks in advance.
Regards,

Re: How to pass XML Document from one EJB to another EJB?

Posted By:   Anonymous  
Posted On:   Wednesday, August 29, 2001 11:37 PM

Hi

Gopal. U can pass XML files in two ways.

1. Passing XML File as String

2. Passing as text file (text doesn't need to be serialized b'coz it is transferred thru bytes.)

I think this should solve ur probs.
Any queries feel free and reply me.

Re: How to pass XML Document from one EJB to another EJB?

Posted By:   Shaun_Childers  
Posted On:   Tuesday, April 24, 2001 07:45 AM

What version of EJB are you coding for? 1.1. or 2.0? Either way, you could use the JMS model for passing XML documents around, depending on the flow of your software (i.e. are you chaining EJB's, etc.)
About | Sitemap | Contact