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 » General IBM MQ Support » MQ for powerbulier clinet?

Post new topic  Reply to topic
 MQ for powerbulier clinet? « View previous topic :: View next topic » 
Author Message
vi.va
PostPosted: Wed Feb 10, 2010 11:50 pm    Post subject: MQ for powerbulier clinet? Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Feb 11, 2010 2:28 pm    Post subject: Reply with quote

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
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 » General IBM MQ Support » MQ for powerbulier clinet?
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.