Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMessaging generator problem - doesn't support Rails 3

I have a problem with Activemessaging plugin and rails3 app.

my gemfile is

gem 'sqlite3'
gem 'activemessaging', :git=>'git://github.com/spraints/activemessaging.git'
gem 'stomp'
gem 'daemons'

After that activemessaging folder appeared in vendor

After bundle install I want to create processor with generator

 rails generate processor Test

And I see this output:

ActiveMessaging: adapter reliable_msg not loaded: no such file to load -- reliable-msg
ActiveMessaging: adapter wmq not loaded: no such file to load -- wmq/wmq
ActiveMessaging: adapter beanstalk not loaded: no such file to load -- beanstalk-client
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
ActiveMessaging: Loading script/app/processors/application.rb
Rails available: Adding dispatcher prepare callback.
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
Could not find generator processor.

What did I miss ? What should I do step by step to make it works. Thank you

like image 236
Fivell Avatar asked Apr 05 '11 14:04

Fivell


2 Answers

What guide or blog article are you using for installation?

http://code.google.com/p/activemessaging/wiki/Installation

Their wiki doesn't resemble the steps you're taking to install, since they recommend using it as a plugin.

EDIT:

After looking at their active issues on Google Code, this project doesn't support Rails 3 yet. At least, major features are missing such as all the generators being in the wrong place such that rails generate won't know about them.

If you want to go it on your own, you'll have to do a bunch of manual config:

http://code.google.com/p/activemessaging/wiki/Configuration

like image 108
nessur Avatar answered Oct 16 '22 17:10

nessur


use https://github.com/kookster/activemessaging repo in your gemfile

gem 'activemessaging', :git => '[email protected]:kookster/activemessaging.git'

Then you can use the rails 3 generators of this gem:

rails g active_messaging:install 
rails g active_messaging:processor YOUR_PROCESSOR

This will create the config/broker.yml (broker config) and config/messaging.rb (queue config). Its a very nice gem.

NOTE: Be sure to include the celluloid gem and daemons. In my gemfile:

gem 'stomp'
gem 'celluloid'
gem 'daemons'

Happy coding! .)

like image 31
Arnaldo Ignacio Gaspar Véjar Avatar answered Oct 16 '22 18:10

Arnaldo Ignacio Gaspar Véjar