[Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread jmo mlists
Hi all, I'm working on a hobby project of mine where I need to use RabbitMQ. I couldn't find any "standard" way of using it in Catalyst so I made the attached module Catalyst::Model::RabbitMQ. I can then have a simple model: package MyApp::Model::MQ; use Moose; use namespace::autoclean; extends

Re: [Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread Gianni Ceccarelli
I'm using a combination of CatalystX::ComponentsFromConfig and Net::Stomp::Producer. The first (t0m's code, even if released by me) allows you to avoid writing essentially empty model classes (and to apply roles via configuration file). The second is the one that actually deals with messaging.

Re: [Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread jmo mlists
On Sat, Aug 18, 2012 at 9:36 PM, Gianni Ceccarelli wrote: > I'm using a combination of CatalystX::ComponentsFromConfig and > Net::Stomp::Producer. The first (t0m's code, even if released by me) allows > you to avoid writing essentially empty model classes (and to apply roles > via configuration fi

Re: [Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread Ian Docherty
On 18 August 2012 20:36, Gianni Ceccarelli wrote: > I'm using a combination of CatalystX::ComponentsFromConfig and > Net::Stomp::Producer. The first (t0m's code, even if released by me) allows > you to avoid writing essentially empty model classes (and to apply roles via > configuration file).

Re: [Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread jmo mlists
On Sat, Aug 18, 2012 at 10:43 PM, Ian Docherty wrote: > It's 'normal' not to create Catalyst specific models, but to create > your model outside of Catalyst (so you can use it in things like cron > jobs for example) in which case you just use a thin adaptor class. See > Catalyst::Model::Adaptor >

Re: [Catalyst] Catalyst::Model::RabbitMQ

2012-08-18 Thread Darren Duncan
jmo mlists wrote: On Sat, Aug 18, 2012 at 10:43 PM, Ian Docherty wrote: It's 'normal' not to create Catalyst specific models, but to create your model outside of Catalyst (so you can use it in things like cron jobs for example) in which case you just use a thin adaptor class. See