Author |
Message
|
pcelari |
Posted: Mon Jun 11, 2012 5:06 am Post subject: anyone tried storing XML document in DB2 table? |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Since version 9, db2 supports the storing of well-formed XML document in DB2 tables.
Has anyone used this new capability from database node or compute node to insert, update and retrieve XML document from message flow?
thanks for sharing!
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jun 11, 2012 5:12 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
rekarm01 |
Posted: Mon Jun 11, 2012 4:51 pm Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
pcelari wrote: |
Has anyone used this ... ? |
Almost certainly, someone has. The InfoCenter documents supported conversions between database data types and ESQL data types.
The question was about a DB2 XML data type introduced as of DB2 v9, supported as of WMB v6.1. The answer does not lie in a seven-year old post about DB2 VARCHAR and WBIMB v5. |
|
Back to top |
|
 |
pcelari |
Posted: Tue Jun 12, 2012 3:48 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
rekarm01 wrote: |
Almost certainly, someone has. The InfoCenter documents supported conversions between database data types and ESQL data types. |
Thank you rekarm01 so much for pointing to the right document! _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jun 12, 2012 5:05 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
rekarm01 wrote: |
The question was about a DB2 XML data type introduced as of DB2 v9, supported as of WMB v6.1. The answer does not lie in a seven-year old post about DB2 VARCHAR and WBIMB v5. |
But it does point out the fact that the OP didn't perform even the most basic due diligence. I could have posted forty links. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 12, 2012 5:31 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
pcelari wrote: |
rekarm01 wrote: |
Almost certainly, someone has. The InfoCenter documents supported conversions between database data types and ESQL data types. |
Thank you rekarm01 so much for pointing to the right document! |
You shouldn't have needed anyone to point you to the right document.
You waste a lot of people's time, ESPECIALLY YOUR OWN, by posting this kind of question without doing any homework yourself.
 |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed Jun 13, 2012 12:33 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
lancelotlinc wrote: |
But it does point out the fact that the OP didn't perform even the most basic due diligence. |
No, it doesn't even do that. Maybe he did, maybe he didn't; sometimes the relevant documentation is hard to find.
lancelotlinc wrote: |
I could have posted forty links. |
Perhaps, but who does that help? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 13, 2012 5:01 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
rekarm01 wrote: |
lancelotlinc wrote: |
But it does point out the fact that the OP didn't perform even the most basic due diligence. |
No, it doesn't even do that. Maybe he did, maybe he didn't; sometimes the relevant documentation is hard to find.
lancelotlinc wrote: |
I could have posted forty links. |
Perhaps, but who does that help? |
Exactly right. mqjeff summarized the sentiment nicely.
mqjeff wrote: |
You shouldn't have needed anyone to point you to the right document.
You waste a lot of people's time, ESPECIALLY YOUR OWN, by posting this kind of question without doing any homework yourself. |
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
rekarm01 |
Posted: Sat Jun 16, 2012 9:18 pm Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
lancelotlinc wrote: |
Exactly right. mqjeff summarized the sentiment nicely.
mqjeff wrote: |
You shouldn't have needed anyone to point you to the right document.
You waste a lot of people's time, ESPECIALLY YOUR OWN, by posting this kind of question without doing any homework yourself. |
|
mqjeff's sentiment may be misplaced here. The OP had merely asked whether anyone had used the new DB2 XML datatype; he hadn't actually asked for someone to point him to the right document. He's not the one whose lack of "due diligence" is wasting other people's time. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Jun 17, 2012 3:35 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
rekarm01 wrote: |
lancelotlinc wrote: |
Exactly right. mqjeff summarized the sentiment nicely.
mqjeff wrote: |
You shouldn't have needed anyone to point you to the right document.
You waste a lot of people's time, ESPECIALLY YOUR OWN, by posting this kind of question without doing any homework yourself. |
|
mqjeff's sentiment may be misplaced here. |
I'm always willing to admit that I'm grumpy and short with posters based on HOW they say things, rather than WHAT they say, and that this is a failing and may not be of service to the community.
This particular poster has a history of asking questions that do not sit well with me.
This particularly question is, as you pointed out rekarm01, directly addressed in the documentation. Part of learning to use Broker is learning to use the documentation. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jun 17, 2012 11:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I'm sorry I'm going to go with rekarm01 on this one.
The OP did not ask how to do it. He asked if anyone had done it. Kind of are there any gotcha's that I should know of, that aren't in the manuals or the books? Can't fault him for asking that...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 18, 2012 1:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
I'm sorry I'm going to go with rekarm01 on this one.
The OP did not ask how to do it. He asked if anyone had done it. Kind of are there any gotcha's that I should know of, that aren't in the manuals or the books? Can't fault him for asking that...  |
Except the manuals say it can't be done! |
|
Back to top |
|
 |
mgk |
Posted: Mon Jun 18, 2012 1:38 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Quote: |
Except the manuals say it can't be done! |
I disagree. The "Manuals" show it maps to an ESQL BLOB.
Kind 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 |
|
 |
mqjeff |
Posted: Mon Jun 18, 2012 1:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mgk wrote: |
Quote: |
Except the manuals say it can't be done! |
I disagree. The "Manuals" show it maps to an ESQL BLOB.
|
 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jun 19, 2012 8:49 am Post subject: Re: anyone tried storing XML document in DB2 table? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
Part of learning to use Broker is learning to use the documentation. |
I very much promote mqjeff's statement as being accurate. It is a mental exercise sifting through the WebSphere Message Broker Infocentre, even with the help of Google.
I have some aggrevation with the state of the InfoCentre:
1. There seems to be a definite lack of extensive code examples by design. Occasionally, you will find a few lines of example code here or there. The samples make up for the lack of examples in the documentation, however, I find it very easy to follow docs with specific examples.
2. When looking for some specific information, I end up in a round-robin of links with no more information that I started with before clicking. SSL information is a great example of a topic that needs a better overview with better step-by-step. Especially when some of the documentation talks about setting SSL on the broker level and some on the Execution Group level, and how to choose between the two. I finally came to know that SOAP node SSL properties can only be configured at the EG level. Would have saved me days of frustration if I knew this, but no where in the InfoCentre is this fact straight-forwardly mentioned.
3. Some places where the documentation is wrong takes years to get it corrected. Case-in-point the bru-ha-ha about Primary Group Id for the Service Id that Broker runs under must be mqbrkrs and not mqm group. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|