2 Replies Latest reply on Apr 13, 2005 3:36 AM by Alexey Ryndin

    How to poost a message immediately befor transaction commit.

    Alexey Ryndin Newbie

      Hi all.
      I have some complex session bean method. It is necessary to post several messages to some topics during this method. I am trying to post them using JVM il. This is the code for getting connection factory and topic session.

      TopicConnectionFactory f =
       (TopicConnectionFactory)namingContext.lookup("java:/ConnectionFactory");
      TopicSession ts = getConnection().createTopicSession(false, Session.AUTO_ACKNOWLEDGE);

      All messages posted during this session became really written only when method finished (this is CMT bean). It is highly desirable to send each message immediately after post to topic. Is there any way to do it&