|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pb : creating a tree with a parser in java |
« View previous topic :: View next topic » |
Author |
Message
|
felfel |
Posted: Mon Aug 28, 2006 5:26 am Post subject: Pb : creating a tree with a parser in java |
|
|
Apprentice
Joined: 02 Nov 2004 Posts: 26
|
Hello Team ,
I used esql code to create a tree with a domain using the following instruction :
CREATE FIRSTCHILD OF Environment DOMAIN 'XML' NAME 'CRP';
After in a last node , I serialize the environment with a ASBITSTREAM instruction.
All works fine.
When I try to do the same thing in Java , I used the method : contact admin.getGlobalEnvironment().getRootElement().createElementAsLastChild("XML").
In the last node , the ASBITSTREAM instruction doesn't serialize the message ( nothing appears in the debugger but don't generate errors).
The only difference I see in the debugger is that on the environment built in java , I have the tag XML ( I haven't this tag in ESQL).
So , how can we create an environment tree using a parser in java in order to serialize it after in the code ?
Thanks for your help , _________________ "Mens sana in corpore sano" |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 28, 2006 3:22 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Search the forum -- read the documentation -- check out the examples.
This has been discussed before... _________________ MQ & Broker admin |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 28, 2006 5:50 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
felfel |
Posted: Tue Aug 29, 2006 5:26 am Post subject: |
|
|
Apprentice
Joined: 02 Nov 2004 Posts: 26
|
Hello ,
The problem is the same with XMLNS or XMLNSC.
The method createElementAsLastChild(String parsername) create a tag element with the name of the parser.
So I obtain :
Environment.XML.Data.
The ESQL statement CREATE FIRSTCHILD OF Environment DOMAIN 'XML' NAME 'Data' don't create the tag XML :
Environment.Data
So I have to manipulate the Environment before serializing it.
Is it the normal way to proceed ?
Thanks for your replies ,
P.S : I don't see any documentation about this and any comment in this forum. You can post the link if you know where _________________ "Mens sana in corpore sano" |
|
Back to top |
|
 |
mgk |
Posted: Wed Aug 30, 2006 1:19 pm Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
You are specifing the parser (DOMAIN) in the ESQL, and you must do the same in Java. Read the Javadoc to see how to do this.
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|