I’m using appengine-jruby to deploy a Sinatra app to GAE. Just
following the steps at:
http://code.google.com/p/appengine-jruby/wiki/GettingStarted
Seems to work pretty well (as in: fantastic, heroku-like levels of
‘pretty well’),
but I wonder if anyone has worked out the happydance to get an app to
recieve
xmpp messages?
I added this to the end of my guestbook.rb:
xmpp thing
post ‘/_ah/xmpp/message/chat’ do
shout = Shout.create(:message => '(via xmpp): ’ + params[:body])
end
and tweaked config.ru to look like;
require ‘appengine-rack’
AppEngine::Rack.configure_app(
:application => “whatever”,
:inbound_services => ‘xmpp_message’,
:version => 1)
require ‘guestbook’
run Sinatra::Application
Is there anything else I need to do? I checked over the java xmpp docs
at
http://code.google.com/appengine/docs/java/xmpp/overview.html
but not sure if there’s extra steps on JRuby?
Thanks!
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Have you tried without GAE involved? i.e. is your question about just
getting XMPP working locally? I know GAE has restrictions on opening
sockets…
On Fri, Oct 9, 2009 at 5:48 AM, Dick D. [email protected] wrote:
I added this to the end of my guestbook.rb:
AppEngine::Rack.configure_app(
but not sure if there’s extra steps on JRuby?
Thanks!
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Well, there’s http://jira.codehaus.org/browse/JRUBY-2141 which is
keeping us
from using JRuby for our backend server. We’re thinking of writing a
Ruby
wrapper around Smack and Smackx-PubSub to get around this but that’s
sometime in the future.
-Mario.
–
I want to change the world but they won’t give me the source code.
Ahh, that’s an oldie and a goodie
That issue basically stems from
us not using nonblocking IO + Selector for gets. Other operations do
use select, and so can be interrupted or timed out…
It’s fixable, but I can’t do it right now. Someone might be interested
in looking at the patch and trying to improve it.
On Sat, Oct 10, 2009 at 4:18 PM, Mario C. [email protected]
wrote:
On Sat, Oct 10, 2009 at 23:30, Charles Oliver N. [email protected]
following the steps at:
  :application => “whatever”,
but not sure if there’s extra steps on JRuby?
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email