Use the following java code:

    String textXML = new String((byte[]) localVar.getValue());

Tell me if you any question.

Cheers,
Manuel Carlos Rodriguez
IBM Certified Specialist - WebSphere MQ

> -----Mensaje original-----
> De:   Reetha K [SMTP:[EMAIL PROTECTED]]
> Enviado el:   Tuesday, January 21, 2003 1:30 PM
> Para: [EMAIL PROTECTED]
> Asunto:       Re: Input Msg as one Big String in the JavaPlugin Node
>
> Hi Rodrigues,
>
> I am doing that now , and my XML is stored as a
> bitstream in the local environment variable . How do i
> get back the String representation in the java
> program?
> MbElement localVar =
> newAssembly.getLocalEnvironment().getRootElement().getFirstElementByPath("
> /Variables/temp");
>
> localVar.getValue()  is returned as an object with hex
> values.
>
> Thank You
> Reetha
>
> --- "Rodrmguez_Alvarez-Querol,_Manuel_Carlos"
> <[EMAIL PROTECTED]> wrote:
> > Reetha,
> >
> > If your message is in the XML domain, then in your
> > input node you will get
> > the XML tree parsed.
> > To get the xml string you can convert the XML tree
> > to a XML string using the
> > BITSTREAM function
> > in a compute node.
> >
> > We have the same issue and we save this XML string
> > in the LocalEnvironment
> > and get its value
> > in the plugin node. Then you could invoke your
> > method.
> >
> > I hope this help you.
> >
> > Cheers,
> > Manuel Carlos Rodriguez
> > IBM Certified Specialist - WebSphere MQ
> >
> >
> > > -----Mensaje original-----
> > > De:   Reetha K [SMTP:[EMAIL PROTECTED]]
> > > Enviado el:   Tuesday, January 21, 2003 5:00 AM
> > > Para: [EMAIL PROTECTED]
> > > Asunto:       Input Msg as one Big String in the
> > JavaPlugin Node
> > >
> > > How can I retrieve the input message in a java
> > plugin
> > > node as one big string.
> > >
> >
> newAssembly.getMessage().getRootElement().getLastChild
> > > ---> gives me the XML Element but can i get this
> > XML
> > > tree as one big string.
> > >
> > > The Java Plugin node receives an XML message from
> > a
> > > compute node which i need as a string to further
> > pass
> > > it as a parameter to invoke a method.
> > >
> > >
> > > Thank u In Advance
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > >
> > > Instructions for managing your mailing list
> > subscription are provided in
> > > the Listserv General Users Guide available at
> > http://www.lsoft.com
> > > Archive: http://vm.akh-wien.ac.at/MQSeries.archive
> >
> > Instructions for managing your mailing list
> > subscription are provided in
> > the Listserv General Users Guide available at
> > http://www.lsoft.com
> > Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to