Posted: Thu Jun 01, 2006 7:54 pm Post subject: String representation of MbElement
Newbie
Joined: 01 Jun 2006 Posts: 1
Hi All,
How can I get the String representation of a MbElement. Basically my requirement is that the Input message will be in an XML format. I need to send this to a Java method which can accept only String parameter. This method will write this XML message into a file.
-- some code here
CALL writeLog(InputRoot.XML);
-- some code here
CREATE PROCEDURE writeLog(IN MSG REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "com.bt.ReadFile.writeLog";
And the Java class will look like:
public class ReadFile {
public static void writeLog(MbElement mbl)
{
try{
writeLog('???????'); ----- Here I need to convert MbElement into a String.
}catch(MbException mbe)
{
}
}
}
Any guidance is appreciated. Basically we need to write the data coming in from an MQ.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum