|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ for powerbulier clinet? |
« View previous topic :: View next topic » |
Author |
Message
|
vi.va |
Posted: Wed Feb 10, 2010 11:50 pm Post subject: MQ for powerbulier clinet? |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 1
|
i set system environment variables
MQSERVER = DC/TCP/192.168.100.228(2000)
PB code:
OLEObject MQS, QM, Q, MW, MR, PO, GO
String ls_mqmgr, ls_s
integer i
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
I = MQS.ConnectToNewObject("MQAX200.MqSession")
MessageBox("",string (i))
ls_mqmgr = "0326GSB"
QM = MQS.AccessQueueManager(ls_mqmgr)
Q = QM.AccessQueue("032601B01",16)
// 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
GO = MQS.AccessGetMessageOptions()
Q.Get( MR, GO)
ls_s = MR.ReadString(MR.MessageLength)
MessageBox("MQSeries", ls_s)
Q.close()
QM.disconnect()
but massage note:
error calling external object function accessqueuemanager line 16 in clicked event of object cb_1 of w_1 |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Feb 11, 2010 2:28 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Quote: |
MQSERVER = DC/TCP/192.168.100.228(2000) |
Where did you set it? The environment variable needs to accessible to the process that power builder is running in.
Also, don't use spaces on setting Windows environment variables. ie.
it should be MQSERVER=DC/TCP/192.168.100.228(2000)
Check the end of the local MQ client error log for diagnostics, C:\P F\IBM\WebSphere MQ\errors\AMQERR01.LOG
HTH _________________ Glenn |
|
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
|
|
|
|