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 » Publish Subscribe in Visual Basic

Post new topic  Reply to topic
 Publish Subscribe in Visual Basic « View previous topic :: View next topic » 
Author Message
lavanyaj
PostPosted: Fri Feb 17, 2006 7:47 am    Post subject: Publish Subscribe in Visual Basic Reply with quote

Newbie

Joined: 17 Feb 2006
Posts: 4

Hi,
I am new to MQ . I want to know if there are ways to do an Publish/ Subscribe in Visual Basic. I want to do a subscriber application in Visual Basic. I would like to know if there are any APIs available for this

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 17, 2006 7:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you search here for "XMS", you'll find comments about the support for .NET that it has or shortly will have.

Other than XMS, you have to hand-build an MQRFH2 header, I think.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 17, 2006 7:57 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Let me clarify a bit.

You need to be able to build an MQRFH2 header if you want to publish messages.

If you wish to receive subscriptions, you only really need to know how to IGNORE an MQRFH2.

If you want your program to register a subscription, then you need to build an MQRFH2. But there are tools (like the rfhutil in support pack IH03) that will let you register subscriptions manually.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
lavanyaj
PostPosted: Fri Feb 17, 2006 8:56 am    Post subject: Re: Publish Subscribe in Visual Basic Reply with quote

Newbie

Joined: 17 Feb 2006
Posts: 4

lavanyaj wrote:
Hi,
I am new to MQ . I want to know if there are ways to do an Publish/ Subscribe in Visual Basic. I want to do a subscriber application in Visual Basic. I would like to know if there are any APIs available for this

Thanks


Thanks Jeff, basically i want to write a visual basic client that subscribes, Multiple copies of the client can be run and Each instance of the client has to subscribe

I see that there are some samples for c++. Basically I want to know if we have any samples for Visual Basic or do i need to manually connect to the queue and get the messages

Thanks again
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 17, 2006 9:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You always need to manually connect and get messages.

Well, if you're using .NET, there is support for an MDB style thing with the .NET Monitor.

You can read about all this stuff in the Using .NET manual.

Subscriptions in general are based on queues, not applications. If you decide to give every instance of the applications it's own queue, then you will need to build either a static subscription for each instance or have the instance register itself. If you're going to have more than about 10 clients, I would highly recommend using Temporary Dynamic Queues instead of real queues. This is accomplished by having your application open up a MODEL queue, getting back the name of the TDQ and then registering the subscription for that name.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
lavanyaj
PostPosted: Fri Feb 17, 2006 9:19 am    Post subject: Reply with quote

Newbie

Joined: 17 Feb 2006
Posts: 4

Thanks Jeff, I am using Visual Basic and not .NET , I found a bas file cmqpsb.bas under the samples. which seems to have some constants for Publish Subscribe method. I will check if I can use this to build a subscriber application
Back to top
View user's profile Send private message
lavanyaj
PostPosted: Mon Feb 20, 2006 7:33 am    Post subject: Reply with quote

Newbie

Joined: 17 Feb 2006
Posts: 4

I need further help. I figured i could subscribe using the constants cmqpsb.bas file,
But now I need to periodically connect and do an MQGET to get the messages ( in a timer) Please let me know if this is allright ( since I am using Visual Basic)
Back to top
View user's profile Send private message
PieterV
PostPosted: Thu Apr 06, 2006 3:45 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

I am also looking for something like this, if it's possible in .NET (but not necessary).

I would need a client that connects (subscriber) and gets the messages for a particular topic...

any help is welcome
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 06, 2006 4:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

A subscriber application is just another MQ application. There's no difference between getting messages from point-to-point and getting messages from pub/sub!

If the subscriber itself needs to register it's own subscription, then it's just another MQ application that can produce messages that have an MQRFH2 header on them.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Apr 06, 2006 5:07 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

PieterV wrote:
I am also looking for something like this, if it's possible in .NET (but not necessary).

I would need a client that connects (subscriber) and gets the messages for a particular topic...

Have you seen the XMS client for .NET? The page is at http://www.ibm.com/support/docview.wss?rs=171&uid=swg24011756

If you want to discuss more, perhaps start a new thread?
Back to top
View user's profile Send private message
PieterV
PostPosted: Thu Apr 06, 2006 5:15 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

Quote:
Have you seen the XMS client for .NET? The page is at http://www.ibm.com/support/docview.wss?rs=171&uid=swg24011756

If you want to discuss more, perhaps start a new thread?


thanks, i'll have a look at this
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 » Publish Subscribe in Visual Basic
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.