Hi Ioannis, If I understood correctly (I'm not a Hibernate expert), what you need is a distribution of JSR 303 that works properly in an OSGi container. Right? As Guillaume and David said SpiFly is not ready yet. Maybe you could try using JSR 303 packaged by guys from the ServiceMix project?
See: http://repo2.maven.org/maven2/org/apache/servicemix/specs/org.apache.servicemix.specs.jsr303-api-1.0.0/1.6.0/ This bundle provides the javax.validation package. If you use this version of the javax.validation, SPI consumers should not require any changes. This bundle is an OSGi extender and that is why it should detect providers that are present in your container (without the need to apply any changes to provider bundles). I think that alternatively you could tell javax.validation to use a custom resolver. However, this would require you to implement this custom OSGi friendly resolver :-). You need to make a decision - which approach is less intrusive and requires less work. Kind regards, Bartek 2010/11/22 Ioannis Canellos <[email protected]>: > Thanks David, > > I'd be happy to provide you with feedback or any other kind of help I can. > > On Mon, Nov 22, 2010 at 5:26 PM, David Bosschaert > <[email protected]> wrote: >> >> Hi Ioannis, >> >> Great to see that you're interested in this. However Guillaume is >> quite right that this component is in experimental state at this point >> and will most likely change in the near future. >> >> One of the things that I'm looking at going forward is to possibly use >> RFC 159 Weaving Hooks and something like ASM to do the bytecode >> manipulation. I'd be looking forward to your feedback once we have >> that a little underway... >> >> Cheers, >> >> David >> >> On 22 November 2010 12:22, Ioannis Canellos <[email protected]> wrote: >> > I want to use it with hibernate / hibernate-validator / validation api. >> > >> > >> > On Mon, Nov 22, 2010 at 1:06 PM, Guillaume Nodet <[email protected]> >> > wrote: >> >> >> >> But is that for an existing spec or for your own code ? >> >> I mean, what's your use case ? Maybe it has already been solved using >> >> servicemix / geronimo specs ? >> >> >> >> On Mon, Nov 22, 2010 at 12:00, Ioannis Canellos <[email protected]> >> >> wrote: >> >> > SPI consumer and provider. >> >> > >> >> > >> >> > >> >> > On Mon, Nov 22, 2010 at 12:57 PM, Guillaume Nodet <[email protected]> >> >> > wrote: >> >> >> >> >> >> David will certainly tell you more, but afaik, it's still >> >> >> experimental >> >> >> and not really suited for production use. >> >> >> Which feature are you looking for exactly ? >> >> >> >> >> >> On Mon, Nov 22, 2010 at 11:53, Ioannis Canellos <[email protected]> >> >> >> wrote: >> >> >> > I want to use aries spifly. I can't find it in any public maven >> >> >> > repository >> >> >> > and I was wondering why. >> >> >> > Is it something that its not "there yet"? >> >> >> > >> >> >> > Ioannis Canellos >> >> >> > http://iocanel.blogspot.com >> >> >> > Integration Engineer @ Upstream S.A. >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Cheers, >> >> >> Guillaume Nodet >> >> >> ------------------------ >> >> >> Blog: http://gnodet.blogspot.com/ >> >> >> ------------------------ >> >> >> Open Source SOA >> >> >> http://fusesource.com >> >> > >> >> > >> >> > >> >> > -- >> >> > Ioannis Canellos >> >> > http://iocanel.blogspot.com >> >> > >> >> > Integration Engineer @ Upstream S.A. >> >> > >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> Cheers, >> >> Guillaume Nodet >> >> ------------------------ >> >> Blog: http://gnodet.blogspot.com/ >> >> ------------------------ >> >> Open Source SOA >> >> http://fusesource.com >> > >> > >> > >> > -- >> > Ioannis Canellos >> > http://iocanel.blogspot.com >> > >> > Integration Engineer @ Upstream S.A. >> > >> > >> > > > > > -- > Ioannis Canellos > http://iocanel.blogspot.com > > Integration Engineer @ Upstream S.A. > > >
