[Building Sakai] Worksite InstaChat

Adrian Fish a.fish at lancaster.ac.uk
Mon Dec 7 03:31:42 PST 2009


How about this one as a starting point?

http://jira.sakaiproject.org/browse/SAK-7930

It more or less captures the functionality that I'm thinking of.

Cheers,

Adrian.

Stephen Marquard wrote:
> I had in mind more the changes to the REST and service code that may be required to enable a floating chat feature. But maybe create one for the overall feature and a subtask or related JIRA for the REST changes necessary to enable it.
>
> Cheers
> Stephen
>
>   
>>>> Adrian Fish <a.fish at lancaster.ac.uk> 12/7/2009 12:40 PM >>>
>>>>         
> Hi Stephen,
>
> Thanks for the info, I'll look into the listener approach. When you say 
> 'a JIRA', do you mean a request for a floating chat feature?
>
> Cheers,
>
> Adrian.
>
> Stephen Marquard wrote:
>   
>> Hi Adrian,
>>
>> Chat currently uses a very efficient message queue per listener for new messages. If you replace that with a method to get all messages since a particular timestamp, you will increase the database traffic and possibly run into scaling problems, plus you might run into some timing and/or race-condition issues.
>>
>> You should probably look at reusing the existing mechanisms by registering a listener and then requesting all new messages for that listener.
>>
>> Is there a JIRA for this?
>>
>> Regards
>> Stephen
>>
>>   
>>     
>>>>> Adrian Fish <a.fish at lancaster.ac.uk> 12/7/2009 12:02 PM >>>
>>>>>         
>>>>>           
>> Hi All,
>>
>> I need some help.
>>
>> I'm working on a dead simple html and javascript addition to site.vm, or 
>> alternatively via sakai:htmlInclude 
>> (http://jira.sakaiproject.org/browse/SAK-15097) that pops up a floating 
>> chat window independent of the other Sakai tools. The chat window posts 
>> new messages to the current worksite's default channel via a slightly 
>> hacked version of ChatMessageEntityProvider, so all messages also get 
>> rendered in the default chat tool. The idea is similar to Chuck's hab.la 
>> integration efforts, but uses Sakai's chat apis.
>>
>> I'm at the point now where I need to add a another path to the chat rest 
>> interface. I need a method whereby I can request all chat messages for 
>> the default room posted since a supplied timestamp, so I can use ajax to 
>> update the floating panel. Can anybody give me any pointers as to where 
>> to start?
>>
>> Many thanks,
>>
>> Adrian.
>>
>>   
>>     
>
>   

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/BLOG/Home
http://confluence.sakaiproject.org/display/AGORA/Home

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a_fish.vcf
Type: text/x-vcard
Size: 289 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091207/66d36b70/attachment.vcf 


More information about the sakai-dev mailing list