|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error creating a non-durable subcriber in XMS |
« View previous topic :: View next topic » |
Author |
Message
|
Dedman |
Posted: Tue Jan 16, 2007 1:29 pm Post subject: Error creating a non-durable subcriber in XMS |
|
|
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 |
|
 |
avsej |
Posted: Tue Feb 05, 2008 7:34 am Post subject: |
|
|
Newbie
Joined: 05 Feb 2008 Posts: 1
|
i have similiar problem.  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 05, 2008 8:27 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|