qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Message and MessageTransfer
Date Tue, 28 Jul 2009 12:32:13 GMT
ricardlf wrote:
> Gordon Sim wrote:
>> Do you need to declare them at 'run time'? Or could they be setup as a 
>> configuration step prior to starting the application?
> I need to declare them at run time. 

Can you give some more detail on the pattern in use? Getting good use 
cases helps ensure the design evolves to better support them.

> Please, could you post an example code
> showing how to do that?

You can cause exchanges to be declared simply by altering your binding 
url and creating a consumer or publisher. E.g. look at the direct 
example for jms[1] and modify the direct.properties to change from using 
amq.direct to some other exchange[2]. Now if you run the direct producer 
or consumer the exchange will be created.


[1] I.e. the examples located in 

[2] E.g. apply the following patch:

diff -up 
--- org/apache/qpid/example/jmsexample/direct/direct.properties.original 
        2009-07-28 08:18:01.000000000 -0400
+++ org/apache/qpid/example/jmsexample/direct/direct.properties 
2009-07-28 08:18:37.000000000 -0400
@@ -24,4 +24,4 @@ connectionfactory.qpidConnectionfactory

  # Register an AMQP destination in JNDI
  # destination.[jniName] = [BindingURL]
-destination.directQueue = 
\ No newline at end of file
+destination.directQueue = 
\ No newline at end of file

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message