[rabbitmq-discuss] module skeleton (behaviour)
Ben Browitt
ben.browitt at gmail.com
Fri Jul 3 12:14:27 BST 2009
Hi,
This is a feature request to implement a skeleton and a central config file
for RabbitMQ modules(extensions).
If modules will use an Erlang behaviour, RabbitMQ could start/stop and
monitor the module automatically.
A good reference is the gen_mod in Ejabberd:
http://www.process-one.net/en/wiki/ejabberd_module_development/
You activate a module by adding it to the list of modules in the config
file.
You can add module specific config options and Ejabberd let you access the
settings in run-time.
Each module implements:
start(Host, Opts) -> ok
stop(Host) -> ok
start and stop are good places to manage custom mnesia tables for example.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090703/d94f83cf/attachment.htm
More information about the rabbitmq-discuss
mailing list