tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: 7.0.3 release
Date Fri, 24 Feb 2017 08:30:36 GMT
2017-02-24 8:50 GMT+01:00 Danilo Cominotti Marques <dcominottim@gmail.com>:

Well this should move to openwebbeans@ list (meecrowave is a subproject of
openwebbeans not tomee) ;)

In my opinion, that's really exciting! I hadn't heard of Meecrowave before
> this email. Congratulations for the efforts.
>
> Meecrowave OAuth2 sounds insanely helpful too -- and a lot simpler to
> configure than JBoss KeyCloak, based on what I saw the last time I looked
> at it.
>
> Should Meecrowave work out of the box with Bean Validation and Jackson
> (with the JAX-RS extension) if they are included in the classpath?
>
>
Not by default since it is not cdi code but it is not that hard:

- for jackson you will ikely need to deactivate the default json provider
(through the cli or setter if you code the main) setting
jaxrs-default-provider to org.apache.johnzon.jaxrs.JsrProvider only
probably and produce the jackson one, for instance:

@Produces
public JacksonJsonProvider jackson() {
    return new JacksonJsonProvider();
}


This is likely the hardest since jackson is not yet very jaxrs 2 friendly
(its @Consumes/@Produces) so you need to switch off defaults providers
which have a higher priority by default but it is not that hard.

- for bean validation, once added to the classpath:

@Produces
public BeanValidationFeature bvalIntegration() {
    return new BeanValidationFeature();
}

That's it :).



> Additionally, I didn't see any mention of DataSource configurations in the
> documentation, but I suppose it should fine because of TomEE embedded, is
> that right?
>
>
Meecrowave is just cdi+jaxrs. It has a few extensions for jpa but it is
*extensions*. Doc is on
http://openwebbeans.apache.org/meecrowave/meecrowave-jpa/index.html. You
love it or hate it cause it makes the resources part of the app (vs managed
by the container for tomee case for instance). Both have pros and cons and
I have to admit depending the app both make sense (no silver bullet ;)).


> Thanks!
>
> Regards,
>
> Danilo Cominotti Marques
>
> On Thu, Feb 23, 2017 at 6:32 PM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> wrote:
>
> > did a few on my blog
> > https://blog-rmannibucau.rhcloud.com/#/search;query=meecrowave and there
> > is
> > the website openwebbeans.apache.org/meecrowave
> >
> > strictly speaking it is mainly inspired from recent tomee embedded
> changes
> > but simplifying it a lot and making the stack consistent/uniform (we
> can't
> > at tomee cause of all possibilities we have). It is limiting it to
> > cdi+jaxrs (not even jpa). Opens a lot of doors nowaday even you can feel
> > frustrated for JPA backends.
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > <https://javaeefactory-rmannibucau.rhcloud.com>
> >
> > 2017-02-23 22:25 GMT+01:00 hwaastad <helge@waastad.org>:
> >
> > > Meecrowave........
> > >
> > > Is that a new kid on the block?  ;-)
> > >
> > > Seriously, seems cool, any blog articles yet?
> > >
> > > /hw
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context: http://tomee-openejb.979440.
> > > n4.nabble.com/7-0-3-release-tp4681145p4681150.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message