|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQJMS "Import Component - Overriding Default Data bindi |
« View previous topic :: View next topic » |
Author |
Message
|
wilsonjohn24 |
Posted: Tue Feb 05, 2008 7:09 am Post subject: MQJMS "Import Component - Overriding Default Data bindi |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
My Aim:
=======
My Process Component is using an Import Component configured for MQJMS. All is working well when I select one of the out the box data binding configurations.
But I need to send a custom format of XML to MQ so I have attempted to create my own data binding class to do the conversion from SDO to MQ Message.
I have created my own data binder in a library project which is correctly set up as a dependency as I can browser and select my class in the property fields in the
Import properties component. I have attempted to follow the help guide and have some issues ( or mis understandings ) - as over riding the binding does not seem to work.
I believe my problems may be due two either:
1) Help Guide Example of custom MQ data bindings section: I cant find class WMQBodyDataBinding as listed in the example of overriding the body? So in my class I "extends MQDataBindingImplJava" and overide this public void write(MQMD md, List headers, MQDataOutputStream output).
2) I have changed all the place that reference data bindings to reference my binding class both in the binding tab and the methods task, is there any more places I need to change?
thanks in advance,
JOhn |
|
Back to top |
|
 |
mq2wps |
Posted: Tue Feb 19, 2008 4:48 am Post subject: |
|
|
Novice
Joined: 06 Feb 2007 Posts: 14
|
Were u able to resolve this.
I have a similar requirement,could you give a heads on achieving this.
Thanks in advance |
|
Back to top |
|
 |
wilsonjohn24 |
Posted: Thu Feb 21, 2008 12:23 pm Post subject: |
|
|
 Voyager
Joined: 02 Feb 2007 Posts: 93 Location: Scotland
|
Yep , solved my issue ( and forgot to update this-apologies).
Basically it was a sort of classpath issue.
I was trying to override:
public void write(MQMD md, List headers, MQDataOutputStream output).
but when I was doing the import ( i.e. ctrl-space + select in the dropdown in java editor )I imported the MQMD class say for illustration com.ibm.mq.MQMD, but the class used in the method signature was com.ibm.processserver.MQMD, so I was overloading the method as opposed to overwriting- hence picking up the OOTB data binding classes. DOH
The actual package names I cant remember - but hopefully clear..
cheers,
John |
|
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
|
|
|
|