Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to a remote queue using ASP and/or VB

Status
Not open for further replies.

Morwen

Programmer
May 2, 2002
2
GB
Hi all

I'm an MQ newbie, and I'm looking to connect to a remote MQ Queue from an ASP site running on an IIS server, and I'm looking to have a VB service running on the same machine to read messages back from the queue.

Does anyone have some sample code I could peruse? I'm basically after the ProgIDs and some sample connection snippets.

Thanks in advance!

Cheers,
Marcus
 
hi!
we have implemented the above requirement using a C++ Adapter code. logic is as follows
1) call the c++ adapter from the VB / ASP Application using a COM Wrapper.
2) the C++ adapter will recv the input message from the application and puts into the queue after reading a property file which holds the information about the queue manager locations & queues where message has to be put.
3) once the message is put, then call another application(VB/ASP)which will read the message from the Queue through the C++ COM adapter.

for the development of the C++ adapter, Refer the MQ Series Manauls for C++ Coding.
i hope this will give some idea as how to proceed.

regards
srikanth
 
Thanks srikanth :)

I hadn't considered the possibility of only retrieving the messages from the Queue using the ASP/VB page, I was thinking I'd have to have a service running on the IIS server to get them and interpret them.

Thanks, this helps :)

Now all I need is to get the connection working! I'm connecting to a third party Queue and I keep getting the vague 2059 error.. lol

Anyways, thanks!

Cheers,
Marcus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top