Posted: Mon Sep 02, 2002 11:06 pm Post subject: AMI Pub-Sub Topic problem
Apprentice
Joined: 29 May 2002 Posts: 28
Hi,
I'm currently facing problem with Topic publish/subscribe using AMI API. I've modifying sample program Subscriber.java to subscribe Topic "Football" (as below), but when I run my program, I'll getting every message that published by Publisher.java even all are not the Topic that my program subscribed. Any body know why?
String topic = "Football";
try
{
// --------------------------------------------------------------
// Add the topic and the correlId (if specified) to the
// unsubscribe request message (with byte conversions performed
// in a specified codepage).
// --------------------------------------------------------------
mySendMSG.reset();
mySendMSG.addTopic(topic);
if (correlId != null )
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