JAR containing cblite-listener

51 views
Skip to first unread message

Shantanu

unread,
Apr 5, 2014, 5:14:02 AM4/5/14
to mobile-c...@googlegroups.com
Hi,

Recently, I have developed an Android App in Eclipse using couchbase-lite. Client-Server replication is working fine.
But I need a peer-to-peer functionality in this app.

can somebody point me to right direction. I require the JAR that implements CBLListener method.

Thanks in Advance


Yaron Goland

unread,
Apr 5, 2014, 4:56:14 PM4/5/14
to mobile-c...@googlegroups.com
tl;dr - See here for inspiration.

Long Winded Version -

https://thali.codeplex.com is my day job and it's all about building a P2P infrastructure on top of Couchbase-Lite. Here is the file that implements our core listener.

So that's the good news.

The bad news is that we aren't using standard CouchBase Lite. We need a bunch of extra features that aren't in Couchbase Lite to make our P2P environment work correctly. So if you look here you will see we've forked all of CouchBase's depots and built our own custom versions. We've filed all our features/bug fixes with CouchBase but they are really busy getting out V1 and haven't had time to deal with them.

So unfortunately the code in the previous link is using a bunch of features we introduced that aren't in mainline CouchBase lite. So that link may not be the best example if you are just looking for generic CouchBase. Sorry. :(

If you are interested in what features we added and why see our architecture overview available here.

I realize this is a ton of data to drop on your head and certainly not a quickly friendly - here you go. Hopefully your P2P needs are more modest than ours and you won't need all this. But if you do, at least you know it's there and can look at it, or better yet, use it! It's all licensed under Apache 2.0.

I'd love to know what you're up to with P2P and CouchBase-Lite. Would you care to share more about what you are up to?

    Thanks,

            Yaron


From: mobile-c...@googlegroups.com <mobile-c...@googlegroups.com> on behalf of Shantanu <shantanud...@gmail.com>
Sent: Saturday, April 05, 2014 2:14 AM
To: mobile-c...@googlegroups.com
Subject: JAR containing cblite-listener
 
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/dced6813-aa57-4e67-9bb7-ca79b063bfe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Traun Leyden

unread,
Apr 7, 2014, 4:24:22 PM4/7/14
to mobile-c...@googlegroups.com
Thanks for posting this Yaron.

@Shantanu - as far as getting jars to use in Eclipse, we currently distribute jars for the beta2 version of Couchbase Lite here.

We also have a more recent build of the zipfile from the master branch available here, and soon will have up-to-the-minute builds from our Jenkins CI server.

If needed I can manually build a snapshot zipfile and upload it for you.




Shantanu

unread,
Apr 8, 2014, 12:34:29 PM4/8/14
to mobile-c...@googlegroups.com, yar...@microsoft.com
@Yaron : Thank you very much for reply.

I am actually trying to build a simple application where the changes made in TouchDB of one device will be updated in other and vice versa.

I went through your code. and architecture page but I think, I am very beginner for this, and my application needs are limited. but if i can help you
in some way, i will be happy to do that.

Shantanu

unread,
Apr 8, 2014, 12:49:26 PM4/8/14
to mobile-c...@googlegroups.com
@Traun : Thank you very much

These are the exact things i was looking for.


I am actually trying to build a simple application where the changes made in TouchDB of one device will be updated in other and vice versa.

Could you please do me a favour, point me to some references or code snippets that will be useful in above task. that is, examples on how to use LiteListener

Shantanu

unread,
Apr 9, 2014, 8:26:16 AM4/9/14
to mobile-c...@googlegroups.com

Shantanu

unread,
Apr 9, 2014, 8:33:47 AM4/9/14
to mobile-c...@googlegroups.com
I have found some sample for implementing LiteListener here

but i am not able to import com.couchbase.lite.android.AndroidContext, this class is missing from jar.
i am using CBLite-1.0.0-beta2.jar in my application.

somebody please help.

Traun Leyden

unread,
Apr 9, 2014, 2:08:11 PM4/9/14
to mobile-c...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages