you will have to declare a second class that extends the avstract
robot servlet and then go to web.xml and map that servlet with a path
(if your servlet is called fetchupdate then you whould do /_wave/robot/
fetchupdate) just look at the stocky robot at google wave samples
you can find it here: http://code.google.com/p/google-wave-resources/
regards maxsap

On 30 Νοέ 2009, 15:54, fabrizio-mc <[email protected]> wrote:
> I want to use thecronevent to periodically syncronize the wave where
> I put my robot with an external app. The need is to add a simple text
> blip in the wave for each action registered from the external app.
>
> I use Java.
>
> I have two questions:
>
> 1. I have seen that my robotcronevent starts regularly if the robot
> is placed in a single wave (for example every 30 secs). But if I put
> the robot in two or more waves I can see only one call and not one
> call for each wave.. Is it correct?
>
> 2. To usecronand update my waves I found and use this code:
>
>         ....
>         if (bundle.getEvents().size() == 0) {
>           LOG.warning("Cronevent now");
>         ....
>
> and it's works (i can see the log in appengine) but when I try to get
> the wavelet and append my message:
>
>           Wavelet wavelet = bundle.getWavelet();
>           Blip blip = wavelet.appendBlip();
>           TextView textnew = blip.getDocument();
>           textnew.append("30 secs message...");
>
> the function getWavelet() value is NULL.
> How can I get wavelet data from wave who contains the robot instance?
>
> Thank you
> Fabrizio Porciani
> Florence, ITALY
-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.


Reply via email to