Hey Ben,
ok I test a really simple scenario, I only want to add a new wavelet
to my current wave.
I don“t want to add or render any content of the wavelet.
The code for creating the wavelet:
// create a unique id for the wavelet.
WaveletId waveletId = clientBackend.getIdGenerator
().newConversationWaveletId();
// create the new wavelet.
WaveletData newWavelet = openWave.createWavelet( waveletId );
// adding me as participant.
clientBackend.sendWaveletOperation( newWavelet,
new AddParticipant( clientBackend.getUserId() ) );
then I iterate through all wavelets (of my current wave) and print the
wavelet names.
for( WaveletData data : fCurrentWave.getWavelets() ) {
System.out.println( data.getWaveletName() );
}
I can now see, that a new wavelet was (locally?) added, the java
console shows something like this:
(0) [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+D3q-Bh6I] // <== my new wavelet
(1) [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+root]
But after restarting my client and iterating through the wavelets,
only the root wavelet appears.
I also checked the server logs and it seems to work, I get something
like this:
---------------------------------------------------
........
Aug 25, 2009 8:56:39 AM
org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
isLocalWavelet
INFO: ### WS is local? [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+D3q-Bh6I] = true
Aug 25, 2009 8:56:39 AM
org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
submitDelta
INFO: ## WS: Got submit: [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+D3q-Bh6I] delta: delta {
hashed_version {
version: 0
history_hash: "wave://wave1.esentri.com/w+5ArWViMYDWvL/conv+D3q-
Bh6I"
}
author: "[email protected]"
operation {
add_participant: "[email protected]"
}
}
........
Aug 25, 2009 8:56:39 AM
org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
isLocalWavelet
INFO: ### WS is local? [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+D3q-Bh6I] = true
Aug 25, 2009 8:56:39 AM
org.waveprotocol.wave.examples.fedone.waveserver.WaveServerImpl
submitDelta
INFO: ## WS: Submit result: [WaveId:wave1.esentri.com!w+5ArWViMYDWvL]/
[WaveletId:wave1.esentri.com!conv+D3q-Bh6I] appliedDelta:
signed_original_delta {
delta {
hashed_version {
version: 0
history_hash: "wave://wave1.esentri.com/w+5ArWViMYDWvL/conv+D3q-
Bh6I"
}
author: "[email protected]"
operation {
add_participant: "[email protected]"
}
}
........
--------------------------------------------------
Maybe I forgot something when creating the wavelet ??
---> Thank you for your great support!!!!!! <---
Tobber
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Wave
Protocol" 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/wave-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---