4 Replies Latest reply on Jun 30, 2004 10:18 AM by Daniel Goodwin

    JMS Topic onMessage()

    LT TAN Newbie

      hey, can anybody help me?

      I'm trying to use for loop in my publish program to publish ten message to the topic at one time, after that i'm create another durableSubscriber program to received the message. When the durableSubscriber program subscribe to the topic, is it the topic will call my onMessage() function one by one to process the ten messages or call ten onMessage at one time to process my message? Because i'm facing the problem is my onMessage just can process a few message before the program terminate. How can i make sure the all my message is finish process before terminate the program? Inside my onMessage() is send a file use FTP using the detail inside the message i reveiced. thank you.