Interview Questions

How do I publish an XML message?

BEA WebLogic Questions and Answers


(Continued from previous question...)

How do I publish an XML message?

Follow these steps:
1. Generate XML from the DOM document tree.
2. Serialize the generated DOM document to a StringWriter.
3. Call toString on the StringWriter and pass it into message.setText.
4. Publish the message.

(Continued on next question...)

Other Interview Questions