|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
connecting to mqseries from power builder |
« View previous topic :: View next topic » |
Author |
Message
|
saravanan_ilyan |
Posted: Mon Mar 12, 2007 8:23 pm Post subject: connecting to mqseries from power builder |
|
|
Newbie
Joined: 27 Feb 2007 Posts: 4
|
Dear Sir,
How to connect to mqseries from power builder 8.0. i am unable to connect to mqseries from power builder 8.0. what are all the steps is required to connect to mqseries.I have given the sample coding for your reference. when the accessqueuemanager external function is being executed, i am getting an runtime error. The error what i am getting is that error calling external object function accessqueuemanager. For this external function, i have mentioned the mqic32.dll.
pls give me the solution at the earliest. This is very urgent.
OLEObject MQS, QM, Q, ME, ML, PO, GO,mr,mw
String ls_mqmgr, ls_s
MQS = CREATE OLEObject // MQSeries Session
QM = CREATE OLEObject // QueueManager
Q = CREATE OLEObject // Queue
MW = CREATE OLEObject // Message Written
MR = CREATE OLEObject // Message Read
PO = CREATE OLEOBject // Put options
GO = CREATE OLEOBject // Get options
integer chk
boolean ll
chk=mqs.ConnectToNewObject("MQAX200.MQsession") // see note 1
ls_mqmgr="uintapp3.apl.com"
qm=mqs.AccessQueueManager("uintapp3")
//Q = QM.AccessQueue("CORP.DEPT.SYST.STAGE.QNP1",1 + 16) // see note 3
Q = QM.AccessQueue("pricing.inquiry.rules.request1")
////// WRITE
MW = MQS.AccessMessage
MW.MessageData = "HELLO WORLD " + string(cpu())
PO = MQS.AccessPutMessageOptions()
Q.Put( MW, PO)
////// READ
MR = MQS.AccessMessage()
MR.MessageIdHex = MR.MessageIdHex // see note 4
GO = MQS.AccessGetMessageOptions()
Q.Get( MR, GO)
ls_s = MR.ReadString(MR.MessageLength)
MessageBox("MQSeries", ls_s)
////
Q.close()
QM.disconnect()
pls send me the solution to my below mail id
saravanan_ilyan@yahoo.com
Thanks,
Saravanan.P |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Mar 13, 2007 5:23 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
what error do you get? do you have MQServer or Client? mqic32.dll indicates client... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
saravanan_ilyan |
Posted: Wed Mar 28, 2007 8:13 pm Post subject: |
|
|
Newbie
Joined: 27 Feb 2007 Posts: 4
|
Michael Dag wrote: |
what error do you get? do you have MQServer or Client? mqic32.dll indicates client... |
when the accessqueuemanager function is being executed, i am getting an error calling external object function
1. I want to know what are all the steps is required
2. how to connect to mqseries from power builder
3. I need connection coding for connecting the power builder application to mq series
Pls help me. This is very urgent
Thanks in advance
Saravanan_ilyan@yahoo.com
Thanks,
Saravanan.P |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Mar 28, 2007 10:37 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
this forum is here to help you, help yourself. Not do your work for you.
so tell us where you get stuck (specific errors) and someone can help you.
you mention this is urgent, yet you return after 16 days...  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
saravanan_ilyan |
Posted: Thu Apr 19, 2007 8:33 pm Post subject: Error while calling the accessqueuemanager in powerbuilder |
|
|
Newbie
Joined: 27 Feb 2007 Posts: 4
|
Dear Sir,
I am getting an runtime error while calling the accessqueuemanager.
The error that i am getting is error calling the external object function accessqueuemanager and I have set the envrionment variable too.
MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/10.6.80.181(1414)
I have installed mqclient and powerbuilder8.0 in my system and MQServer has been installed on another system.
I am using the below coding. If i use the below code in the system where the MQServer and pb is installed then it is working fine without declaring the external function. If i use the below code in the system where the system is having mqclient and pb then it is not working.
what is the set up for connecting to mqserver from pb
OLEObject MQS, QM, Q, ME, ML, PO, GO,mr,mw,ole_mq_queue_mgr
String ls_mqmgr, ls_s
integer chk
boolean ll
MQS = CREATE OLEObject // MQSeries Session
QM = CREATE OLEObject // QueueManager
Q = CREATE OLEObject // Queue
MW = CREATE OLEObject // Message Written
MR = CREATE OLEObject // Message Read
PO = CREATE OLEOBject // Put options
GO = CREATE OLEOBject // Get options
chk=MQS.ConnectToNewObject("MQAX200.mqsession")
//MESSAGEBOX("CONNECTION",STRING(CHK))
// see note 1
ls_mqmgr="QM_Local"
QM=MQS.AccessQueueManager(ls_mqmgr)
//Q = QM.AccessQueue("CORP.DEPT.SYST.STAGE.QNP1",1 + 16) // see note 3
Q = QM.AccessQueue("pricing.inquiry.rules.request")
////// WRITE
MW = MQS.AccessMessage
MW.MessageData = "HELLO WORLD " + string(cpu())
PO = MQS.AccessPutMessageOptions()
Q.Put( MW, PO)
////// READ
MR = MQS.AccessMessage()
MR.MessageIdHex = MR.MessageIdHex // see note 4
GO = MQS.AccessGetMessageOptions()
Q.Get( MR, GO)
ls_s = MR.ReadString(MR.MessageLength)
MessageBox("MQSeries", ls_s)
////
Q.close()
QM.disconnect()
My mail id is saravanan_ilyan@yahoo.com
Thanks,
Saravanan.p |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 20, 2007 1:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You specify a runtime error but no codes to go with it. As we are not the psychic hot line we cannot help you...
Give us the return code and the reason code.  _________________ MQ & Broker admin |
|
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
|
|
|
|