qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Created: (QPID-543) Add abaility to add custom exchanges
Date Mon, 06 Aug 2007 13:01:59 GMT
Add abaility to add custom exchanges 
-------------------------------------

                 Key: QPID-543
                 URL: https://issues.apache.org/jira/browse/QPID-543
             Project: Qpid
          Issue Type: New Feature
          Components: Java Broker
    Affects Versions: M2
            Reporter: Rob Godfrey
            Priority: Minor
             Fix For: M3


Allow the broker to be customized by adding custom exchanges to a virtual host.  

Add configuration to the config.xml file to allow declaration of custom exchange types:

                <custom-exchanges>
                    <class-name>org.apache.qpid.server.exchange.SystemExchangeType</class-name>
                </custom-exchanges>

class-name must be of a class which implements ExchangeType:


public interface ExchangeType<T extends Exchange>
{
    public AMQShortString getName();
    public Class<T> getExchangeClass();
    public T newInstance(VirtualHost host, AMQShortString name,
                         boolean durable, boolean autoDelete) throws AMQException;
}

the name is the name of the exchange *type* (to be used when declaring a new exchange of this
type)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message