Re: NoSQL backend for James

2011-11-02 Thread Manuel Carrasco Moñino
> > Why not adding the presentation or its link to the hupa documentation? We > are lacking good documentation. > Although, I already added a presentations link to the James front page in the wiki, i think it is a good idea. Also, the hupa maven site was generated a long time ago and has not been

Re: NoSQL backend for James

2011-11-01 Thread Felix Knecht
On 10/31/2011 04:17 PM, Manuel Carrasco Moñino wrote: Hello Pepijn On Fri, Oct 28, 2011 at 3:12 PM, Pepijn de Vos wrote: Hi, I decided to stop working on the CouchDB backend. I'm sorry. Bad news, it was a good idea James supporting couchdb There is something to be said for persisting and

Re: NoSQL backend for James

2011-10-31 Thread Manuel Carrasco Moñino
Hello Pepijn On Fri, Oct 28, 2011 at 3:12 PM, Pepijn de Vos wrote: > Hi, > > I decided to stop working on the CouchDB backend. I'm sorry. Bad news, it was a good idea James supporting couchdb > > There is something to be said for persisting and finishing, but I do not > enjoy writing it and I

Re: NoSQL backend for James

2011-10-28 Thread Pepijn de Vos
Hi, I decided to stop working on the CouchDB backend. I'm sorry. There is something to be said for persisting and finishing, but I do not enjoy writing it and I don't need it. I'm going to focus instead on what I set out to do, write a webmail application. I will persist in that. I learned tha

Re: NoSQL backend for James

2011-10-17 Thread Pepijn de Vos
Ah, it's just that I caught the wrong exception in my code. I'll fix that. On Oct 17, 2011, at 1:51 PM, Manuel Carrasco Moñino wrote: > I have added the Stress test and I see the exception, not sure how to fix yet. > https://github.com/manolo/james-couchdb/commit/cf9a41116fca458c440a28ec937b83aec

Re: NoSQL backend for James

2011-10-17 Thread Manuel Carrasco Moñino
I have added the Stress test and I see the exception, not sure how to fix yet. https://github.com/manolo/james-couchdb/commit/cf9a41116fca458c440a28ec937b83aeccd7967a - Manolo Exception in thread "pool-5-thread-61" org.ektorp.UpdateConflictException: document update conflict: id: 5e04b2a2c6fd920b

Re: NoSQL backend for James

2011-10-16 Thread Pepijn de Vos
Thanks man, really appreciated. I too think my ModSeq impl looks good, but incrementing the modSeq 4 times in parallel, I noticed that the value is incremented only 2-3 times. _rev is incremented even less. additional documents get created. What happens is that the same mailbox object gets pass

Re: NoSQL backend for James

2011-10-16 Thread Manuel Carrasco Moñino
On Sat, Oct 15, 2011 at 5:40 PM, Pepijn de Vos wrote: > So, the result and questions for today: > > https://github.com/pepijndevos/james-couchdb > > What is serialVersionUID? It is a good practice to define it for serializable classes http://www.javapractices.com/topic/TopicAction.do?Id=45 > > I

Re: NoSQL backend for James

2011-10-16 Thread Manuel Carrasco Moñino
On Sat, Oct 15, 2011 at 11:41 AM, Pepijn de Vos wrote: > Thanks! :) > > I have no idea what you did with the generics though. I read an article about > them, and thought I understood them. > > Basically they are just statically checked casts, right? So what does it mean > to write X implements Y

Re: NoSQL backend for James

2011-10-15 Thread Pepijn de Vos
So, the result and questions for today: https://github.com/pepijndevos/james-couchdb What is serialVersionUID? Is UidValidity something else than what is provided by CouchDbUidProvider? I had a look at the InMemory test, and it seems to fail on remainders of the InMemory implementation(mention

Re: NoSQL backend for James

2011-10-15 Thread Pepijn de Vos
Thanks! :) I have no idea what you did with the generics though. I read an article about them, and thought I understood them. Basically they are just statically checked casts, right? So what does it mean to write X implements Y? The tests are just leftovers from InMemory. I'm not doing TDD, bu

Re: NoSQL backend for James

2011-10-14 Thread Manuel Carrasco Moñino
You are right, you already sent the github link. I've checked out the code and I've made some changes to make it compile, also I have changed id signature in messages and mailboxes to String since couchdb uses string. I have hardcoded a user and password in the Utils class, it should go in the con

Re: NoSQL backend for James

2011-10-13 Thread Pepijn de Vos
I added the github link to the beautifully formatted original email, but I think Google mistreated my message. Her it is again: https://github.com/pepijndevos/james-couchdb Pepijn On Oct 13, 2011, at 9:28 PM, Manuel Carrasco Moñino wrote: > Hi Pepjin, could be possible to share your code anywh

Re: NoSQL backend for James

2011-10-13 Thread Manuel Carrasco Moñino
Hi Pepjin, could be possible to share your code anywhere, so as I could checkout it and take a look? Don't worry about if the code is ok or not, I think github could be ok, but you could send a compressed file via email or whatever you prefer. - Manolo On Thu, Oct 13, 2011 at 8:12 PM, Pepijn de

Re: NoSQL backend for James

2011-10-13 Thread Pepijn de Vos
Okay, I put up the result for the day. I made a CouchDbMailbox with Ektorp @annotations. I made an attempt to make the MailboxMapper, but I got stuck at the casting sugar which I don't grok. My IDE keeps complaining it can't resolve the incompatible types, while both are just Mailboxes. I stuffe

Re: NoSQL backend for James

2011-10-13 Thread Pepijn de Vos
More questions. I started hacking! I'm going with Ektorp. I figured out most of it, I think. Except that I don't understand the configuration. It does have a Spring module. Any pointers on how to organize the config and connections? What does findMailboxWithPathLike do? The implementations seem

Re: NoSQL backend for James

2011-10-12 Thread Manuel Carrasco Moñino
Actually Ektorp is not a full implementation of JPA, but it provides a JPA like API with support to many of its annotations etc. Anyway, based on my experience, Ektorp simplifies the access from java to couchdb and the bootstrap of couchdb, so as theoretically when James starts the first time, the

Re: NoSQL backend for James

2011-10-12 Thread Pepijn de Vos
Ektorp seems nice, but I'm more comfortable just using something that resembles the HTTP API, since I'm not familiar with JPA. Haven't decided yet. Pepijn On Oct 11, 2011, at 5:08 PM, Manuel Carrasco Moñino wrote: > Hi Pepijn > > Which java library are you considering to use to connect with co

Re: NoSQL backend for James

2011-10-11 Thread Manuel Carrasco Moñino
Hi Pepijn Which java library are you considering to use to connect with couchdb? I'm using [1] ektorp and makes really easy to map domain models. - Manolo [1] http://www.ektorp.org/reference_documentation.html#d0e532 On Mon, Oct 10, 2011 at 10:44 PM, Pepijn de Vos wrote: > > Thanks a lot. > >

Re: NoSQL backend for James

2011-10-10 Thread Ioan Eugen Stan
2011/10/10 Pepijn de Vos : > Thanks a lot. > > On Oct 10, 2011, at 8:24 PM, Ioan Eugen Stan wrote: > >> Have patience. You will need it if you wish to complete something. >> Patience and perseverance or else you'll be just another one who >> tried. > > I don't expect to have it finished by the end

Re: NoSQL backend for James

2011-10-10 Thread Pepijn de Vos
Thanks a lot. On Oct 10, 2011, at 8:24 PM, Ioan Eugen Stan wrote: > Have patience. You will need it if you wish to complete something. > Patience and perseverance or else you'll be just another one who > tried. I don't expect to have it finished by the end of the week, but if I'm still complete

Re: NoSQL backend for James

2011-10-10 Thread Ioan Eugen Stan
2011/10/10 Pepijn de Vos : > Thanks, helpful :) More questions! > > What is the modification sequence? (ModSeqProvider) This? > http://tools.ietf.org/html/rfc4551 It's a way to see if the mailbox has been modified (flags changed, etc.). > I guess the UID is just that of a message? It's a number

Re: NoSQL backend for James

2011-10-10 Thread Pepijn de Vos
Thanks, helpful :) More questions! What is the modification sequence? (ModSeqProvider) This? http://tools.ietf.org/html/rfc4551 I guess the UID is just that of a message? Do both need to be an increasing long? ( http://wiki.apache.org/couchdb/HttpGetUuids ) I'm soon going to start my implemen

Re: NoSQL backend for James

2011-10-04 Thread Ioan Eugen Stan
2011/10/4 Pepijn de Vos : > Another piece of the puzzle. HBase and JPA use less of the classes from the > Store API. Therefore they also extend the managers to provide their custom > classes. I'm still not sure why they do that, instead of using for example > SimpleMessage. > > I found a Couch l

Re: NoSQL backend for James

2011-10-04 Thread Pepijn de Vos
Another piece of the puzzle. HBase and JPA use less of the classes from the Store API. Therefore they also extend the managers to provide their custom classes. I'm still not sure why they do that, instead of using for example SimpleMessage. I found a Couch library that claims to be a lot like J

Re: NoSQL backend for James

2011-09-23 Thread Robert Burrell Donkin
On Fri, Sep 23, 2011 at 12:30 PM, Pepijn de Vos wrote: > Looking at memory, I see mappers and providers, what do these terms imply? > > Now, I would think another mailbox would look similar to this one, because > they do the same thing, right? The mailbox API is an adaption layer abstracting qui

Re: NoSQL backend for James

2011-09-23 Thread Pepijn de Vos
Looking at memory, I see mappers and providers, what do these terms imply? Now, I would think another mailbox would look similar to this one, because they do the same thing, right? Looking at jpa, I suddenly see manager classes added to the mix, and in general just twice as many classes. Are th

Re: NoSQL backend for James

2011-09-23 Thread Ioan Eugen Stan
2011/9/23 Pepijn de Vos : > Has anything like this happened? Hello Pepjin, > > I got James running, but I tried to look at the source with a regular text > editor, and couldn't really figure out where stuff comes from an what it > does. Does it help to use a Java IDE? To me everything looks like

Re: NoSQL backend for James

2011-09-23 Thread Pepijn de Vos
Has anything like this happened? I got James running, but I tried to look at the source with a regular text editor, and couldn't really figure out where stuff comes from an what it does. Does it help to use a Java IDE? To me everything looks like AbstractSingletonProxyFactoryBeans[1] Pepijn [

Re: NoSQL backend for James

2011-08-22 Thread Robert Burrell Donkin
On Mon, Aug 15, 2011 at 8:32 PM, Pepijn de Vos wrote: > I'm still not sure what to think of the REST API. Do you want to have a IMAP > 'replacement' that is RESTful, or just an abstraction over a simple key-value > store? (I just realized that, in a way, a CouchDB mailbox is already a REST >

Re: NoSQL backend for James

2011-08-22 Thread Robert Burrell Donkin
On Sun, Aug 21, 2011 at 10:06 PM, Pepijn de Vos wrote: > Wait, so this means there should be a *zip* inside the target dir? I only > have a jar. > > I can't see anything wrong with the build, but this is the output: > http://pastebin.com/7mrdseTA > > I hope someone can help me to get to a state

Re: NoSQL backend for James

2011-08-21 Thread Pepijn de Vos
Wait, so this means there should be a *zip* inside the target dir? I only have a jar. I can't see anything wrong with the build, but this is the output: http://pastebin.com/7mrdseTA I hope someone can help me to get to a state where I can run James and load mailboxes. Pepijn On Aug 16, 2011,

Re: NoSQL backend for James

2011-08-17 Thread Ioan Eugen Stan
2011/8/16 Pepijn de Vos : > I think the link has gone missing, but it would indeed be very helpful if you > wrote a bit about your experience navigating James. It's coming. It will be here in the next week or so. Now I'm concentrating on finishing the job (integration tests). Next week is for doc

Re: NoSQL backend for James

2011-08-16 Thread Pepijn de Vos
I think the link has gone missing, but it would indeed be very helpful if you wrote a bit about your experience navigating James. > And nice to see you are interested. I worked on the HBase mailbox > implementation so I can help also. I am preparing a schema design [1] -

Re: NoSQL backend for James

2011-08-15 Thread Ioan Eugen Stan
Hello Pepijn, And nice to see you are interested. I worked on the HBase mailbox implementation so I can help also. I am preparing a schema design [1] 2011/8/15 Pepijn de Vos : > Thanks for the answers, more questions coming! > > I checked out the server and the mailbox repo, and followed the inst

Re: NoSQL backend for James

2011-08-15 Thread Pepijn de Vos
Thanks for the answers, more questions coming! I checked out the server and the mailbox repo, and followed the instructions, I ran a couple of mvn commands, and got a bunch of jars. All is fine until I get here: Step 2: Unpack the archive into your James installation directory -- what... wher

Re: NoSQL backend for James

2011-08-13 Thread Norman Maurer
Hi there, first of welcome to JAMES :) Answer of your questions inline.. 2011/8/13 Pepijn de Vos : > Hey, > > I was Googling around for a mail server that I could use with a nice > database, so I can query the mail in interesting ways for my > webmail/newsgroup/whatever app. > > I found a GSOC

NoSQL backend for James

2011-08-13 Thread Pepijn de Vos
Hey, I was Googling around for a mail server that I could use with a nice database, so I can query the mail in interesting ways for my webmail/newsgroup/whatever app. I found a GSOC page that listed this as a possible project. I contacted the mentor (Robert) to see if someone picked it up yet.