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 Process Server (WID/WPS/WAS+) » MQJMS "Import Component - Overriding Default Data bindi

Post new topic  Reply to topic
 MQJMS "Import Component - Overriding Default Data bindi « View previous topic :: View next topic » 
Author Message
wilsonjohn24
PostPosted: Tue Feb 05, 2008 7:09 am    Post subject: MQJMS "Import Component - Overriding Default Data bindi Reply with quote

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
View user's profile Send private message
mq2wps
PostPosted: Tue Feb 19, 2008 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message
wilsonjohn24
PostPosted: Thu Feb 21, 2008 12:23 pm    Post subject: Reply with quote

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
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 Process Server (WID/WPS/WAS+) » MQJMS "Import Component - Overriding Default Data bindi
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.