1 Reply Latest reply on Sep 30, 2003 2:56 PM by Stephane Nicoll

    Correct JMS bus usage question

    Nigel Birch Newbie

      Hi,

      I have an application that has been written without following the 'correct' usage, as shown in the for-pay documentation examples:

      1) creates a Queue connection and then calls .start() on that connection *before* it creates a session on the connection. Could this cause problems? The sample code in the for-pay docs show the session created before connection is started.

      2) the connection is not stopped before being closed. The sample code in the for-pay docs show conn.stop() called before conn.close()

      Are these usages harmless or could they cause memory leaks?

      Thanks,
      NBirch