Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JAXp in MDBs

rahul shandy
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JAXp in the Message Driven Beans:

Approaches used:
1.)In the handleTextRequest() of the base MDB, we get the XML request as a string.
2.) I converted the string request into array of bytes and then converted these bytes into input stream. This input stream is then converted to inputsource type.
3.)I then passed this inputSource object to DocumentBuilder�s parse(). This was supposed to give me a document object which is nothing but a pointer kind of thing to the xml nodes.
4.)Instead, what I got was a SAXException saying that �Processing instruction is not valid�

Please help me to find out what's wrong.
Kinda urgent...

Thanks in advance

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic