How do I publish an xml message? : BEA Weblogic
Answer / Nipun Kumar Gupta
To publish an XML message in WebLogic, you can use JAXB to convert the XML into a Java object, then create a MessageProducer and set the content of the message using the setObjectProperty method.n```javanMessageProducer producer = session.createProducer(queue); Message message = producer.createMessage(); // create an empty message Object xmlObject = JAXBContext.newInstance("package.name").createUnmarshaller().unmarshal(new StringReader("<message>content</message>")); message.setObjectProperty("Content", xmlObject); producer.send(message); // send the XML messagen```
| Is This Answer Correct ? | 0 Yes | 0 No |
What are tuning jvm parameters?
What are the disadvantages of node manager?
Write a program of web logic server to get the connection pool attribute?
How many weblogic servers can I have on a multi-cpu machine?
Can an mdb be a message producer or both a producer and consumer? : BEA Weblogic
Why do I get an exception when trying to find a connection factory? : BEA Weblogic
what are configuration classes in weblogic
What is thread stack size? What is the default thread stack size in windows? Which memory space does thread stack get allocated from?
What are the toolbar elements.
When should I use the -nostage option?
What is SSL in weblogic ?
What are the differences between a web logic server and a web server?