• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JAXp in MDBs

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

~raul
reply
    Bookmark Topic Watch Topic
  • New Topic