I'm using jboss 3.0.0 and Durable Topic subscriber to get messages from a Topic. I'm doing the folowing in my client application:
topic = (Topic)Client.getNamingContext().lookup("topic/MyTopic");
TopicConnectionFactory cFactory = (TopicConnectionFactory)Client.getNamingContext().lookup("UILConnectionFactory");
topicConnection = cFactory.createTopicConnection(login,login);
topicSession = topicConnection.createTopicSession(false,TopicSession.AUTO_ACKNOWLEDGE);
updateSubscriber = topicSession.createDurableSubscriber(topic, login);
I'm using also File PM. Everything works fine, but at every restart of the client I'm getting every message that was saved, no matter if I've already got them at a previous restart. I assume this means that the files which contains the messages are not deleted, when the messages are acknowledged. Does anyone know how to fix this minor problem?