2 Replies Latest reply on Sep 27, 2006 10:41 PM by clebert.suconic

    Two PostOffices?

    clebert.suconic

      Why do we need to PostOffices on new configurations?


      Looking at /src/etc/server/default/deploy/clustered-mysql-persistence-service.xml, it looks like are two PostOffices needed. One for Topics and another one for Queues.

      Is there any reason for this?

        • 1. Re: Two PostOffices?
          timfox

          Yes, one is for queues and the other is for topics.

          We need two since it's possible to install a queue and a topic with the same name.

          • 2. Re: Two PostOffices?
            clebert.suconic

            Ah... this is just because of the names... Ok... got it.

            I Just wonder if wouldn't be better to use composed object keyts than two PostOffices.

            This is just an idea. Something like:

            public class Key
            {
             String name;
             int type; // 1 for queue, 2 for topic
            
             ... implementing hashes and equals
            }