Re: Input Msg as one Big String in the JavaPlugin Node
Hello , There is a another way of getting the input XML, i used arrayBytes = newAssembly.getMessage().getBuffer(); String inputMessage = new String(arrayBytes); One more query, iam invoking a EJB method call from the evaluate method and i get a weblogic.utils.Assertion Error when i try to create a remote object.The home was created successfully. Any clue about this , or have u tried invoking an EJB method call from the JPlugin? Thanks In Advance Reetha --- Rodrmguez_Alvarez-Querol,_Manuel_Carlos [EMAIL PROTECTED] wrote: 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 __ 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
Re: Input Msg as one Big String in the JavaPlugin Node
If you are talking about a processing node (vs. an input node) then the easiest is to use a ResetContentDescriptor node immediately before the plugin node to convert the message to the BLOB domain. Timm Bryant - Original Message - From: Reetha K [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 10:00 PM Subject: 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
Re: Input Msg as one Big String in the JavaPlugin Node
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
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
Re: Input Msg as one Big String in the JavaPlugin Node
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