Very nice! I followed it all the way through and except for a small race condition between the blog datasource service registration and the jpa extender creating the EntityManager everything worked like a charm. I am not quite sure what the right fix for the race condition is, I am not sure tweaking start orders would be necessarily any more reliable.
One thought would be that making the references to the sample files hyperlinks would make it a bit more consumable ;) Thanks for posting this. Valentin On 29 Jun 2010, at 21:46, jamie campbell wrote: > Valentin, Bartoz, > > Thanks for your helpful comments. I got things working (I think) and wrote > up a tutorial based on the adventure, at > http://parit.ca/documentation/tutorials/apache/aries/openjpa-karaf-aries-derby-blog-sample > .. it's an unformatted plain text monstrosity, but, hopefully has some > useful information for folks to reference in future. > > Part of what it includes is a shell command implementing bundle. I got kind > of stuck on what namespace to use for it. I didn't want to use > org.apache.aries.samples.blog because that would imply that it was apache > endorsed. And I didn't want to use a namespace that was too obscure to > clearly connect to the fact that it DOES provide functionality for that > namespace. So I went with org.parit.aries.samples.blog. If that namespace > is still too close for comfort, I can take another try at a different name, > and am open to suggestions :) > > -Jamie
