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 IndexWebSphere Message Broker (ACE) SupportHow to read the deployed XML in MB V6

Post new topicReply to topic
How to read the deployed XML in MB V6 View previous topic :: View next topic
Author Message
CuriCAT
PostPosted: Tue Apr 24, 2007 11:29 pm Post subject: How to read the deployed XML in MB V6 Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

Requirment:

I wanted add an XML file to .BAR file and deploy it , wanted to read that from ESQL. I know in MB V6 we can deploy XML file as separate enitity, but I wanted to know how to access it from ESQL.

I am also searching through information centre, I am not getting a clue where that XML file would be stored after the deployement and how to refer to that XML if wanted to access it from ESQL.

Please help me. Thanks in advance.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Tue Apr 24, 2007 11:47 pm Post subject: Re: How to read the deployed XML in MB V6 Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

There is no chance to read file from ESQL.

I don't understand also why you need place XML file into bar.

In my opinion the better way is to place this file somewhere in file system and read it from JAVACompute.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
CuriCAT
PostPosted: Wed Apr 25, 2007 12:59 am Post subject: Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

Thanks for your respose,

I know I can keep a .properties file or XML file in file system and read it from Java Compute node.

but in MB V6 there is an option to add XML file, Í am curious about the is use of adding XML file to bar file. if I can access that in ESQL , it will work like a properties file for me. I know there are .BAR file properties.. you can use it for the same purpose.. still wanted to know about this.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Wed Apr 25, 2007 1:33 am Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

CuriCAT wrote:

but in MB V6 there is an option to add XML file



Where have you red about this ?
In my opinion you can add to bar only compiled flows, MRMs and JAVACompute jars.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
CuriCAT
PostPosted: Wed Apr 25, 2007 4:04 am Post subject: Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

If you are not sure please do not argue..
don't blindly tell that this is not possible, that is not possible.

read information centre: To deploy XML, XSL, and JAR files inside a broker archive, the connected Configuration Manager and target broker must be Version 6.0 or later.

reference number : af03880_
topic name : Adding files to a broker archive
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Wed Apr 25, 2007 4:22 am Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Quote:
You can manually add XML, XSL, and JAR files by following these steps. However, JAR files that are required by JavaCompute nodes within message flows are added automatically from your Java project when you add the message flow. Similarly, XML and XSL files are automatically added if they are required by the flow.



Here the most important is

Quote:
Similarly, XML and XSL files are automatically added if they are required by the flow.


It means they are required by broker nodes (JAVA Compute , Transformation) not by your ESQL code.

You can not read files from ESQL.

Of course I'm not 100% sure
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Apr 25, 2007 5:00 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can not read files from ESQL. There are no language constructs to do it.

You can read files from Java.

Putting the XML Files into the bar file would give you a standard location for them when deployed.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
CuriCAT
PostPosted: Wed Apr 25, 2007 6:22 am Post subject: Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

Thanks marcin and jefflowrey
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Wed Apr 25, 2007 6:23 am Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

CuriCAT wrote:
Thanks marcin and jefflowrey



Now you believe ...
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
XZ
PostPosted: Thu Apr 26, 2007 6:25 am Post subject: Reply with quote

Apprentice

Joined: 22 May 2006
Posts: 45
Location: IBM Hursley

Conceptually, deployed XML files are ownered (and managed) by the broker. It is stored in a location private to the proker. Currently, there is no API call available for reading it from a user plugin node or ESQL.
_________________
Regards,

-XZ
WMQI Development
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Apr 26, 2007 6:31 am Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

XZ wrote:
Conceptually, deployed XML files are ownered (and managed) by the broker. It is stored in a location private to the proker. Currently, there is no API call available for reading it from a user plugin node or ESQL.



But it is stored as a flat file , yes ?

If yes I can read it from JAVACompute.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
XZ
PostPosted: Thu Apr 26, 2007 6:53 am Post subject: Reply with quote

Apprentice

Joined: 22 May 2006
Posts: 45
Location: IBM Hursley

Well, since the files are internal, nothing can be guaranteed.
_________________
Regards,

-XZ
WMQI Development
Back to top
View user's profile Send private message
PieterV
PostPosted: Fri May 04, 2007 1:22 am Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

Hello,

i've tried to deploy a XML file with a little flow.
i see that the xml file gets in a private folder on the filesystem and it's also deployed to the execution group.

But when i try to open the XML file in a JavaComputeNode i get FileNotFound.

anybody any idea?

Code:

            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            Document doc = docBuilder.parse (new File("properties.xml"));
Back to top
View user's profile Send private message
XZ
PostPosted: Fri May 04, 2007 1:29 am Post subject: Reply with quote

Apprentice

Joined: 22 May 2006
Posts: 45
Location: IBM Hursley

You haven't specified the full file path, have you?

Just want to warn you that this is not a supported practice -- use it at your own risk. You may find the file moves its location or you can get corrupted content.
_________________
Regards,

-XZ
WMQI Development
Back to top
View user's profile Send private message
PieterV
PostPosted: Fri May 04, 2007 1:36 am Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

When i specify the full path it works indeed.

Isnt possible to use a relative path?
I've tried with "config/XML/properties.xml" but no success.

I will try some other possibilities, i'll cross my fingers...
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportHow to read the deployed XML in MB V6
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.