Re: XMPP chat component and REST

2011-02-10 Thread Jean-Sebastien Delfino

On 02/10/2011 12:11 AM, Luciano Resende wrote:

On Wed, Feb 9, 2011 at 1:06 PM, john pradeepyehohan...@gmail.com  wrote:

Hi Jean,
That's a nice idea... I Just started today to see how we can use apache
vysper for XMPP in cloud platforms which doesn't provide pre-defined APIs
for XMPP as provided by GAE.
I understand that vysper can run as a standalone server and also it can be
embedded into the application, would it be a good idea to provide Nuvem APIs
to start the embedded XMPP server in a dedicated thread and APIs to
register users with the XMPP server?
I am trying out vysper now, any suggestions would be helpful.

Regards,
John






I have something that start a Vysper server, let me see if I can post
it to my sendbox so you can play with it.




Sounds good! I also had some code to start Vysper there [1] (used to 
unit test Tuscany C++ chat components), if that helps.


[1] 
http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/components/chat/test/TestVysperServer.java

--
Jean-Sebastien


XMPP chat component and REST

2011-02-08 Thread Jean-Sebastien Delfino

Hi all,

Now that we have a first implementation of an XMPP API and component 
implementation, how about building even simpler components on top of 
that, with a REST interface for example?


Here are some initial thoughts and usage scenarios:

- A sender component, configured with two 'jid' and 'password' 
properties. To logon as j...@doe.com configure the 'jid' property. To 
send a message to j...@doe.com, POST the message string to 
/component-uri/j...@doe.com.


- A receiver service component, configured with two 'jid' and 'password' 
properties and a 'listener' reference. To logon as j...@doe.com 
configure the 'jid' property. The component receives messages sent to 
joe and POSTs them to the component wired to 'listener'.


- Or a sender-receiver service component that does both?

- And perhaps a logger component that logs messages and returns them on 
a GET?


I did something like that before in Tuscany C++ (just a sender and a 
sender-receiver) and that seemed to work. It shouldn't be too difficult 
to write Java or Python implementations of a similar REST scheme here, 
on top of what John has already contributed.


Thoughts?

[1] http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/components/chat/
--
Jean-Sebastien