<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: IM Integration with XMPP4r - 2 mistakes to avoid</title>
	<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/</link>
	<description>Because programming should be fun</description>
	<pubDate>Fri, 12 Mar 2010 13:31:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: IceskYsl</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-539</link>
		<author>IceskYsl</author>
		<pubDate>Wed, 13 Feb 2008 09:15:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-539</guid>
					<description>I use backgroundrb in rails to do this ~</description>
		<content:encoded><![CDATA[<p>I use backgroundrb in rails to do this ~</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: John Yerhot</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-541</link>
		<author>John Yerhot</author>
		<pubDate>Thu, 14 Feb 2008 03:00:30 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-541</guid>
					<description>"I use backgrounrb in rails to do this ~"
Me too - I have a BackgrounDrb worker that is called every 60 minutes that uses Xmpp4r to send an IM and it works very nicely.   Like you were talking about, it also separates out the Rails app from the "listener" (or worker with BackgrounDrb).</description>
		<content:encoded><![CDATA[<p>&#8220;I use backgrounrb in rails to do this ~&#8221;<br />
Me too - I have a BackgrounDrb worker that is called every 60 minutes that uses Xmpp4r to send an IM and it works very nicely.   Like you were talking about, it also separates out the Rails app from the &#8220;listener&#8221; (or worker with BackgrounDrb).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Matt Garland</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-697</link>
		<author>Matt Garland</author>
		<pubDate>Sat, 27 Sep 2008 03:39:26 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-697</guid>
					<description>Frank! I had whiteboarded this structure to code tomorrow when I googled around and found your warning.

Now, what if EVERYTHING I wanted my Rails app to do was unilateral? Users creates account, and rails creates a jabber account for them, too. User changes friend preferences in Rails, and Rails updates roster of friend. Account is deleted, and Rails tells the server to stop saving the equivalent JID.

Would that still smell? The rails and jabber will even be on the same machine. Do I really need confirmations, even? 

Anyway, thanks for the head up.

matt</description>
		<content:encoded><![CDATA[<p>Frank! I had whiteboarded this structure to code tomorrow when I googled around and found your warning.</p>
<p>Now, what if EVERYTHING I wanted my Rails app to do was unilateral? Users creates account, and rails creates a jabber account for them, too. User changes friend preferences in Rails, and Rails updates roster of friend. Account is deleted, and Rails tells the server to stop saving the equivalent JID.</p>
<p>Would that still smell? The rails and jabber will even be on the same machine. Do I really need confirmations, even? </p>
<p>Anyway, thanks for the head up.</p>
<p>matt</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Matt Garland</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-698</link>
		<author>Matt Garland</author>
		<pubDate>Sat, 27 Sep 2008 04:04:21 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-698</guid>
					<description>More googling brought your point home, Frank. Here's a Railsforum post that step by step shows you how to create this backgroundrb listener: http://railsforum.com/viewtopic.php?id=1033/</description>
		<content:encoded><![CDATA[<p>More googling brought your point home, Frank. Here&#8217;s a Railsforum post that step by step shows you how to create this backgroundrb listener: <a href="http://railsforum.com/viewtopic.php?id=1033/" rel="nofollow">http://railsforum.com/viewtopic.php?id=1033/</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-701</link>
		<author>Frank</author>
		<pubDate>Fri, 03 Oct 2008 21:08:39 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-2-mistakes-to-avoid/#comment-701</guid>
					<description>Matt, 

I can't be of any help with backgroundrb since I had a lot of problems configuring it... so much that I gave up and made a separate listener instead. For some reasons Backgroundrb slowed down our application a lot and made it very unstable. Since our listener doesn't contain any business logic, the fact that I don't have access to the Rails application data isn't a problem at all. What I also like with this setup is the fact that it forces you to see the listener as a separated project. It can have its own repository, its own capistrano deployment recipes... so when you find a bug in the listener, you only have to commit/deploy the listener project while the rails application remains untouched.

EDIT: Oh and I forgot to answer your your first comment, sorry. Sure, if you don't need to establish a bi-directional conversation with your users, you do not need a "listener". However your rails app would still have to create a jabber connection (with the whole authentication process) at every requests which would be far from ideal. The best is still to stick with a separated listener (custom or backgroundrb).

Thanks for your comment!</description>
		<content:encoded><![CDATA[<p>Matt, </p>
<p>I can&#8217;t be of any help with backgroundrb since I had a lot of problems configuring it&#8230; so much that I gave up and made a separate listener instead. For some reasons Backgroundrb slowed down our application a lot and made it very unstable. Since our listener doesn&#8217;t contain any business logic, the fact that I don&#8217;t have access to the Rails application data isn&#8217;t a problem at all. What I also like with this setup is the fact that it forces you to see the listener as a separated project. It can have its own repository, its own capistrano deployment recipes&#8230; so when you find a bug in the listener, you only have to commit/deploy the listener project while the rails application remains untouched.</p>
<p>EDIT: Oh and I forgot to answer your your first comment, sorry. Sure, if you don&#8217;t need to establish a bi-directional conversation with your users, you do not need a &#8220;listener&#8221;. However your rails app would still have to create a jabber connection (with the whole authentication process) at every requests which would be far from ideal. The best is still to stick with a separated listener (custom or backgroundrb).</p>
<p>Thanks for your comment!</p>
]]></content:encoded>
				</item>
</channel>
</rss>
