|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JText Connector + Wrapper BO |
« View previous topic :: View next topic » |
Author |
Message
|
vk |
Posted: Wed Apr 19, 2006 3:12 pm Post subject: JText Connector + Wrapper BO |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
Is it possible to use Wrapper BOs with JText Connectors?
Consider a case where a message has record A and record B. I want to write record A to A.txt and record B to B.txt. The destination folders are different for both the files.
I created 2 BOs for A and B, separate MOs for the 2 BOs and a wrapper BO which has BO A and BO B within it. I dont want the connector to write the Wrapper BO anywhere, but the child BOs should be written to the files in the respective locations.
Can I make this scenario work without having to split the records and send them as separate messages to the connector?
I have implemented Wrapper BOs with JDBC connectors. The wrapper will not be inserted into any table, while all the child BOs will be inserted into the respective tables.
But with JText, this does not seem to work. I had to create a separate MO for the wrapper BO and then it is writing the wrapper BO as well as the child BOs to the same file.
Thanks in advance,
VK. |
|
Back to top |
|
 |
recallsunny |
Posted: Thu Apr 20, 2006 12:20 pm Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
You will need a seperate BO for each of your record types (A, B). Then can you pass different files names using a Dynamic meta object in the app-specific info of each BO.
Quote: |
cw_mo_JTextConfig = DynChildMOAttrName |
To my knowledge JText does not support Wrapper BO's it only supports top-level JText meta-object & Dynamic MO's. |
|
Back to top |
|
 |
vk |
Posted: Thu Apr 20, 2006 12:42 pm Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
If the child BOs are sent as separate XML messages to the connector, it is writing them to the respective files. This works when the file name is hard coded in the respective MO or when the file name is passed dynamically.
But if I send both the BOs in the same XML message with a wrapper BO, then it is writing the parent BO as well as both the inner child BOs to the file name for the parent. Also, when the parent and child have different data handlers specified in their MOs, the data handler for the parent overrides the one specified for the child.
There is a line in the users guide for JText, which says -
Quote: |
use of the JTextWrapper configuration is being deprecated |
Does anyone have an idea about this or how to specify JTextWrapper in the business object level application specific information?
Thanks,
VK. |
|
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
|
|
|
|