Re: Easier to use Java Client

2011-03-29 Thread Rexxe
Yes, my RiakRestClient creates a random client id and also allows the developer to set one. I did not know, though, that there were special optimizations for Base64 encoding of a byte[4]. I will change the code to reflect that. Why would you need a different clientId for each thread though? Not

Re: Easier to use Java Client

2011-03-29 Thread Rexxe
Jon, my apologies, didn't mean to put words in your mouth :-) I guess you could put a template abstraction in front of your client, but like I said, the typing is a little weird to accommodate Groovy. So, if someone needed to use the client directly, it might be a little difficult for them in pur

Re: Easier to use Java Client

2011-03-29 Thread Jon Brisbin
On Mar 29, 2011, at 12:28 AM, Rexxe wrote: > I started to use Riak using the spring-data project but found that their API > was lacking and had serious issues with strict typing. It turns out that the > Java API they've built is pretty much being built just so it works in > Grails/Groovy. A

Re: Easier to use Java Client

2011-03-29 Thread Russell Brown
On 29 Mar 2011, at 10:02, Kresten Krab Thorup wrote: > One thing, which is often missed by newcomers to Riak [I'm not saying you > missed it], is the importance of managing client IDs, and passing the right > vector clocks back to the server. > > { Basho'ers ... please corret me if I'm wrong

Re: Easier to use Java Client

2011-03-29 Thread Kresten Krab Thorup
One thing, which is often missed by newcomers to Riak [I'm not saying you missed it], is the importance of managing client IDs, and passing the right vector clocks back to the server. { Basho'ers ... please corret me if I'm wrong } Kresten So, Rule#1 (which has two clauses), which you can

Re: Easier to use Java Client

2011-03-29 Thread Rexxe
Yes, Jackson is being used to do the marshalling if it's a bean, but I am using Spring's RestTemplate, which decides whether to use Jackson or some other basic marshalling (e.g. byte[] or String, etc.). This allows me to deal with responses that come back from Riak that are not in JSON (e.g. mixed

Re: Easier to use Java Client

2011-03-29 Thread Russell Brown
On 29 Mar 2011, at 06:28, Rexxe wrote: > Hello, > > I am new to Riak and the mailing list. I started to use Riak using the > spring-data project but found that their API was lacking and had serious > issues with strict typing. It turns out that the Java API they've built is > pretty much be

Easier to use Java Client

2011-03-28 Thread Rexxe
Hello, I am new to Riak and the mailing list. I started to use Riak using the spring-data project but found that their API was lacking and had serious issues with strict typing. It turns out that the Java API they've built is pretty much being built just so it works in Grails/Groovy. So, I star