I am developing a web app with a ReST API that I'd like to connect to an xmpp server (already running Tigase). I haven't worked out the details yet, but basically, I'd like users to be able to subscribe (using PubSub) to notifications of changes to particular resources in the ReST API.
I thought this would just take an few hours, but I hit a stumbling block: my web server (google app engine) can't send iq messages, which is how pubsub notifications happen. Ideally, I'd like the following setup:
1) Any logged on user should be able to subscribe to any resource.
2) only the AppEngine (ie a specific user on another host) should be allowed to send out notifications.
3) XMPP messages should be translated into XMPP PubSub notifications.
It seems to me that #1 is part of what pubsub does, so that's probably nothing to worry about. #2 is probably part of the configuration of pubsub, but maybe something I have to think more about. #3 is what concerns me. I have looked at the docs for building a "component" and it seems very doable, but I thought I would check here for advice/opinions/caveats/better ideas before I started down what might be an unnecessarily tricky path.