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 Interchange Server + Adapters » How to send an ICS Business Object to MQ

Post new topic  Reply to topic
 How to send an ICS Business Object to MQ « View previous topic :: View next topic » 
Author Message
abirax
PostPosted: Fri Mar 16, 2007 11:32 pm    Post subject: How to send an ICS Business Object to MQ Reply with quote

Newbie

Joined: 17 Aug 2006
Posts: 8

Hi All,
Could some help me write a java application which could post a business object to MQ. I tried sending the XML generated from the business object but the MQ adapter is not able to pick it up.



Attached the error i got.
[Time: 2007/03/17 12:41:03.781] [System: ConnectorAgent] [SS: WebSphereMQ] [Thre
ad: WorkerThread : 0 (#1180146015)] [Type: Error] [MsgID: 25000] [Mesg: Data han
dler com.crossworlds.DataHandlers.text.xml failed to convert message (ID:414d512
0576562537068657265494353773afa4520000b01) to business object (any). It reported
the following error: CxCommon.Exceptions.BusObjSpecNameNotFoundException:Unable
to find version "*.*.*" of business object definition "XMLTEST_HelloASBO".. ]


regards Abir
Back to top
View user's profile Send private message
ashoon
PostPosted: Sat Mar 17, 2007 5:30 am    Post subject: why write it in java??? Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

this is what your MQ adapter does... check your MQ adapter and see if "XMLTEST_HelloASBO" is a BO it support (and check agent support as it's your ASBO and create your mappings between the two)...
Back to top
View user's profile Send private message
abirax
PostPosted: Mon Mar 19, 2007 2:36 am    Post subject: Reply with quote

Newbie

Joined: 17 Aug 2006
Posts: 8

Hi All ,
I was able to write the application to post messages in MQ . Below is the code snippet .
I have used a mq adapter with a com.crossworlds.DataHandlers.text.delimited as the datahandler
. My requirement was ASBO name HelloASBO with verb create
and I had two fields to poulate customerId and customerName
try{

MQQueueConnectionFactory factory = null;
MQQueue queue = null;

MQQueue replyToQueue = null;
QueueConnection connection = null;
QueueSession session = null;
QueueSender sender = null;
System.out.println("Creating a QueueConnectionFactory");
factory = new MQQueueConnectionFactory();
factory.setQueueManager(QUEUE_MANAGER);
boolean transacted = false;
int acknowledgeMode = Session.AUTO_ACKNOWLEDGE;
connection = factory.createQueueConnection();
session = connection.createQueueSession(transacted,acknowledgeMode);

replyToQueue = new MQQueue("",REPLY_TO);
System.out.println("Creating Queue");
queue = new MQQueue();
queue.setBaseQueueName(QUEUE);

System.out.println("Creating QueueSender");
sender = session.createSender(queue);

TextMessage msg= session.createTextMessage("HelloASBO~Create~sampleCustomerId~sampleCustomerName~11~");
sender.send(msg);
System.out.println("Closing objects");
sender.close();
session.close();
connection.close();
System.out.println("Finished");
} catch (JMSException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Back to top
View user's profile Send private message
mqseries0209
PostPosted: Mon Mar 19, 2007 9:36 am    Post subject: hey Reply with quote

Voyager

Joined: 30 Mar 2006
Posts: 90

It seems from your first post the BO Prefix in the MO datahandeler configuration is set to "XMLTEST_", thats whay its giving the mesntioned error

"It reported
the following error: CxCommon.Exceptions.BusObjSpecNameNotFoundException:Unable
to find version "*.*.*" of business object definition "XMLTEST_HelloASBO".. ]
"

Read more abt how to configure your MO Object from Infocenter... its staright forward.
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 Interchange Server + Adapters » How to send an ICS Business Object to MQ
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.