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 » IBM MQ API Support » Error creating a non-durable subcriber in XMS

Post new topic  Reply to topic
 Error creating a non-durable subcriber in XMS « View previous topic :: View next topic » 
Author Message
Dedman
PostPosted: Tue Jan 16, 2007 1:29 pm    Post subject: Error creating a non-durable subcriber in XMS Reply with quote

Newbie

Joined: 10 Jan 2007
Posts: 1

I am using the XMS C++ classes to use Publish/Subscribe funtionality in my app, and I am running into an error when trying to create a non-durable subscriber. I am getting error XMS_E_PROTOCOL_ERROR, but there doesn't seem to be any documentation on why this error occurs. I was making an assumption that an ND subscriber is just a MessageConsumer instance. Anyone have any ideas? Here is the code:

if(mpConnFactory)
{
mpConnFactory->setIntProperty(XMSC_CONNECTION_TYPE, XMSC_CT_WMQ);
mpConnFactory->setIntProperty(XMSC_WMQ_PORT, msConfigOptions.mlPort);
mpConnFactory->setIntProperty(XMSC_WMQ_CONNECTION_MODE, XMSC_WMQ_CM_CLIENT);
mpConnFactory->setIntProperty(XMSC_WMQ_BROKER_VERSION, XMSC_WMQ_BROKER_V1);
mpConnFactory->setStringProperty(XMSC_WMQ_HOST_NAME, (PCER_STR)msConfigOptions.mcsHostName);
mpConnFactory->setStringProperty(XMSC_WMQ_BROKER_QMGR, (PCER_STR)msConfigOptions.mcsQMName);

mcConnection = mpConnFactory->createConnection();

mcSession = mcConnection.createSession(xmsFALSE, XMSC_AUTO_ACKNOWLEDGE);

mcDestTopic = xms::Destination(lcsXmsTopic);

mcSubscriptionConsumer = mcSession.createConsumer(mcDestTopic);


Any thoughts would be appreciated.
Back to top
View user's profile Send private message
avsej
PostPosted: Tue Feb 05, 2008 7:34 am    Post subject: Reply with quote

Newbie

Joined: 05 Feb 2008
Posts: 1

i have similiar problem.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 05, 2008 8:27 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

avsej wrote:
i have similiar problem.


Given that the thread you've posted onto is a year old, it's unlikely to be on the same version of the software. Also how similar is similar? Very similar? Almost identical? Sort of related? Has some of the same words?

Start a new thread, explaining your problem with reference to what you're attempting, what's actually happening and what you've tried to resolve it (much of which was missing from this post). Give details of the platform you're on and the software versions you're using.

Help us to help you. One line declarations, no matter how heart rending, are unlikely to get you very far.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » IBM MQ API Support » Error creating a non-durable subcriber in XMS
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.