1 2 Previous Next 17 Replies Latest reply on Sep 12, 2009 2:47 AM by timfox Go to original post
      • 15. Re: Large Messages disappearing
        timfox

        BTW there's a very simple way to get the semantics you want of pass-by-reference in the same VM that will work with *any* messaging system.

        Simply create a static HashMap in your code, and before you send a message put your message body in the HashMap, then just send the message id in the actual JMS message.

        When you receive the message at the other side simply look up the message body out of the static HashMap using the message id.

        • 16. Re: Large Messages disappearing
          thammoud

          My solution involves a configuration change to the connection factory. if the services are ever moved to a remote server, then we will not need to change any code.

          Using your proposed solution (maps) will always assume that services are co-located which is not necessarily the case. You will have to change code if you ever move any of the feeds.

          • 17. Re: Large Messages disappearing
            timfox

            Sure, we'll implement this in a transparent way too, which applies to all message types (not just ObjectMessage).

            I was just pointing out there is an easy workaround for now with a static hashmap

            1 2 Previous Next