Rafi, Below is the link for a proposal that you helped me put together. http://cwiki.apache.org/confluence/display/qpid/Proposal+for+a+new+JMS+Destination+configuration2
I think it captures most of the concepts you have talked about in this thread. Perhaps we could use that as a basis for a proposal to be used across all languages. regards, Rajith On Mon, Sep 14, 2009 at 10:38 AM, Rafael Schloming <rafa...@redhat.com> wrote: > Jonathan Robie wrote: >> >> Rafael Schloming wrote: >>> >>> There really are two separate configuration topics here: configuration of >>> the client (which is reasonable to do via JNDI) and configuration of the >>> broker (which nobody in their right mind would ever consider doing via >>> JNDI). It would probably be helpful clarify which one you mean in a given >>> context. >> >> The Java JMS examples we use configure the broker - they set up queues and >> bindings in the broker. What's our story here - is this something that >> nobody in their right mind would actually do? If so, we might want to >> change this in our examples once we provide better alternatives .... > > Yes, this is pretty much insane since you need to separately specify your > broker schema for each client that connects, and if they don't all match > (e.g. one has a typo) then who knows what you'll end up getting. It's a race > where the first client to connect wins. > > Not to mention it's woefully incomplete as a mechanism to configure the > broker, e.g. there is no way to delete the queues and bindings you create > this way. > > In general you should have a single well documented schema for the broker > that is maintained separately from all the clients, and the clients should > be configured with the minimal information required to connect to this > schema, i.e. just the relevant queue or topic name. > > --Rafael > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:dev-subscr...@qpid.apache.org > > -- Regards, Rajith Attapattu Red Hat http://rajith.2rlabs.com/ --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org