Den 22. april 2015 15:46, skrev Gordon Sim: > On 04/21/2015 01:24 PM, Chris Richardson wrote: >> We're interested in customising some of the behaviour of the broker, >> particularly in the context of routing and setting custom properties on >> messages as they transit the broker. Can you tell me if there's mechanism >> eg: hooks/plugins to allow us to do this, or any plans to implement >> such a >> thing? > > Which broker? The java or the c++ one? For the c++ broker there are one > or two 'internal' extension points, e.g. you can create custom exchange > types, set various listeners etc. > > I say 'internal' because there isn't really any stable API for broker > internals. Most of the extension points are there to allow simpler > implementation of additional features in the tree (e.g. ha uses lots).
c++ one. Let me explain the use case: On a LAN that we fully control, machine A connects to machine B running the broker to send off a message. The connecting IP address of machine A is known "somewhere" on the host that runs the broker. When the message arrives at the broker, we would like to add or modify a custom header field (or change one) to the message, related to the sender's (A's) IP-address. For this, it would be very nice to have an interface in the broker to add "hooks" that could run user-defined code on events like the one described above. So what do you see as our options here? The best answer would be that "we plan to implement hooks in version X.Y", however, any other suggestion would be welcomed :) BR, Tor Rune Skoglund, FourC AS --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
