ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Pb : creating a tree with a parser in java

Post new topic  Reply to topic
 Pb : creating a tree with a parser in java « View previous topic :: View next topic » 
Author Message
felfel
PostPosted: Mon Aug 28, 2006 5:26 am    Post subject: Pb : creating a tree with a parser in java Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 28, 2006 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Aug 28, 2006 5:50 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
DOMAIN 'XML'
Why not XMLNS or XMLNSC?
Back to top
View user's profile Send private message
felfel
PostPosted: Tue Aug 29, 2006 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Wed Aug 30, 2006 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Pb : creating a tree with a parser in java
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.