You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Daniel Cunha <da...@apache.org> on 2017/08/06 00:06:51 UTC

Default resources for Java EE 7.

Hi folks,

I started some works with concurrency API and got some troubles with
default resources, let me know what do you think about my PRs:

https://github.com/apache/tomee/pull/102
https://github.com/apache/tomee/pull/103


Best regard.
-- 
Daniel Cunha
https://twitter.com/dvlc_

Re: Default resources for Java EE 7.

Posted by Daniel Cunha <da...@gmail.com>.
Ok. I get it. I'll close it.

Thank you, Romain.

On Sun, Aug 6, 2017 at 11:05 AM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Le 6 août 2017 14:12, "Daniel Cunha" <da...@apache.org> a écrit :
>
> Hi Romain,
>
> Well, I see that:
> Https://github.com/apache/tomee/blob/master/tomee/tomee-
> common/src/main/java/org/apache/tomee/installer/Installer.java#L729
>
> So, do we forget the '\ n' on the previous line? It seems that this is
> already expected to be true by default. So make sense we have that:
> https://github.com/apache/tomee/pull/102/files#diff-
> 77912d8fbbbfd389a1d3cbb339561e3cR369
>
> IMHO.
>
>
>
> No, in standalone it was set to match the spec but it covers ~1% of the
> real world usage (remove tests, remove base/home instances etc...) so think
> we are good with current defaults. We can surely enhance Comp merging when
> there is no webapp - you second addDefault diff - bit this is unrelated to
> default resources, more to jndi shared namespace handling outside webapps.
>
>
>
>
> Hi Jon,
>
> I updated tests for this one:
> https://github.com/apache/tomee/pull/103
>
>
> On Sun, Aug 6, 2017 at 8:46 AM, Daniel Cunha <da...@gmail.com> wrote:
>
> > Hi Romain,
> >
> > well, I get it. But If you don't want the defaults resources then I'll
> set
> > the flag to false. The server should always start with default resource
> > IMHO.
> >
> > On Sun, Aug 6, 2017 at 4:35 AM, Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> >> Hi Daniel
> >>
> >> The side note here is: having them by default was intended cause it
> breaks
> >> tomee deeply in term of resource matching and user existing config. Idea
> >> was to set the flag if you want ee7 behavior to stay backward compat
> (and
> >> this solution is fine for a EE container).
> >>
> >>
> >>
> >>
> >> Le 6 août 2017 02:06, "Daniel Cunha" <da...@apache.org> a écrit :
> >>
> >> > Hi folks,
> >> >
> >> > I started some works with concurrency API and got some troubles with
> >> > default resources, let me know what do you think about my PRs:
> >> >
> >> > https://github.com/apache/tomee/pull/102
> >> > https://github.com/apache/tomee/pull/103
> >> >
> >> >
> >> > Best regard.
> >> > --
> >> > Daniel Cunha
> >> > https://twitter.com/dvlc_
> >> >
> >>
> >
> >
> >
> > --
> > Daniel Cunha
> > https://twitter.com/dvlc_
> >
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
>



-- 
Daniel Cunha
https://twitter.com/dvlc_

Re: Default resources for Java EE 7.

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le 6 août 2017 14:12, "Daniel Cunha" <da...@apache.org> a écrit :

Hi Romain,

Well, I see that:
Https://github.com/apache/tomee/blob/master/tomee/tomee-
common/src/main/java/org/apache/tomee/installer/Installer.java#L729

So, do we forget the '\ n' on the previous line? It seems that this is
already expected to be true by default. So make sense we have that:
https://github.com/apache/tomee/pull/102/files#diff-
77912d8fbbbfd389a1d3cbb339561e3cR369

IMHO.



No, in standalone it was set to match the spec but it covers ~1% of the
real world usage (remove tests, remove base/home instances etc...) so think
we are good with current defaults. We can surely enhance Comp merging when
there is no webapp - you second addDefault diff - bit this is unrelated to
default resources, more to jndi shared namespace handling outside webapps.




Hi Jon,

I updated tests for this one:
https://github.com/apache/tomee/pull/103


On Sun, Aug 6, 2017 at 8:46 AM, Daniel Cunha <da...@gmail.com> wrote:

> Hi Romain,
>
> well, I get it. But If you don't want the defaults resources then I'll set
> the flag to false. The server should always start with default resource
> IMHO.
>
> On Sun, Aug 6, 2017 at 4:35 AM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
>> Hi Daniel
>>
>> The side note here is: having them by default was intended cause it
breaks
>> tomee deeply in term of resource matching and user existing config. Idea
>> was to set the flag if you want ee7 behavior to stay backward compat (and
>> this solution is fine for a EE container).
>>
>>
>>
>>
>> Le 6 août 2017 02:06, "Daniel Cunha" <da...@apache.org> a écrit :
>>
>> > Hi folks,
>> >
>> > I started some works with concurrency API and got some troubles with
>> > default resources, let me know what do you think about my PRs:
>> >
>> > https://github.com/apache/tomee/pull/102
>> > https://github.com/apache/tomee/pull/103
>> >
>> >
>> > Best regard.
>> > --
>> > Daniel Cunha
>> > https://twitter.com/dvlc_
>> >
>>
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
>



--
Daniel Cunha
https://twitter.com/dvlc_

Re: Default resources for Java EE 7.

Posted by Daniel Cunha <da...@apache.org>.
Hi Romain,

Well, I see that:
Https://github.com/apache/tomee/blob/master/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java#L729

So, do we forget the '\ n' on the previous line? It seems that this is
already expected to be true by default. So make sense we have that:
https://github.com/apache/tomee/pull/102/files#diff-77912d8fbbbfd389a1d3cbb339561e3cR369

IMHO.


Hi Jon,

I updated tests for this one:
https://github.com/apache/tomee/pull/103


On Sun, Aug 6, 2017 at 8:46 AM, Daniel Cunha <da...@gmail.com> wrote:

> Hi Romain,
>
> well, I get it. But If you don't want the defaults resources then I'll set
> the flag to false. The server should always start with default resource
> IMHO.
>
> On Sun, Aug 6, 2017 at 4:35 AM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
>> Hi Daniel
>>
>> The side note here is: having them by default was intended cause it breaks
>> tomee deeply in term of resource matching and user existing config. Idea
>> was to set the flag if you want ee7 behavior to stay backward compat (and
>> this solution is fine for a EE container).
>>
>>
>>
>>
>> Le 6 août 2017 02:06, "Daniel Cunha" <da...@apache.org> a écrit :
>>
>> > Hi folks,
>> >
>> > I started some works with concurrency API and got some troubles with
>> > default resources, let me know what do you think about my PRs:
>> >
>> > https://github.com/apache/tomee/pull/102
>> > https://github.com/apache/tomee/pull/103
>> >
>> >
>> > Best regard.
>> > --
>> > Daniel Cunha
>> > https://twitter.com/dvlc_
>> >
>>
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
>



-- 
Daniel Cunha
https://twitter.com/dvlc_

Re: Default resources for Java EE 7.

Posted by Daniel Cunha <da...@gmail.com>.
Hi Romain,

well, I get it. But If you don't want the defaults resources then I'll set
the flag to false. The server should always start with default resource
IMHO.

On Sun, Aug 6, 2017 at 4:35 AM, Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hi Daniel
>
> The side note here is: having them by default was intended cause it breaks
> tomee deeply in term of resource matching and user existing config. Idea
> was to set the flag if you want ee7 behavior to stay backward compat (and
> this solution is fine for a EE container).
>
>
>
>
> Le 6 août 2017 02:06, "Daniel Cunha" <da...@apache.org> a écrit :
>
> > Hi folks,
> >
> > I started some works with concurrency API and got some troubles with
> > default resources, let me know what do you think about my PRs:
> >
> > https://github.com/apache/tomee/pull/102
> > https://github.com/apache/tomee/pull/103
> >
> >
> > Best regard.
> > --
> > Daniel Cunha
> > https://twitter.com/dvlc_
> >
>



-- 
Daniel Cunha
https://twitter.com/dvlc_

Re: Default resources for Java EE 7.

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Daniel

The side note here is: having them by default was intended cause it breaks
tomee deeply in term of resource matching and user existing config. Idea
was to set the flag if you want ee7 behavior to stay backward compat (and
this solution is fine for a EE container).




Le 6 août 2017 02:06, "Daniel Cunha" <da...@apache.org> a écrit :

> Hi folks,
>
> I started some works with concurrency API and got some troubles with
> default resources, let me know what do you think about my PRs:
>
> https://github.com/apache/tomee/pull/102
> https://github.com/apache/tomee/pull/103
>
>
> Best regard.
> --
> Daniel Cunha
> https://twitter.com/dvlc_
>

Re: Default resources for Java EE 7.

Posted by Jonathan Gallimore <jo...@gmail.com>.
Can you add a test? Other than that, they should be good.

Thanks

Jon

On 6 Aug 2017 1:06 am, "Daniel Cunha" <da...@apache.org> wrote:

Hi folks,

I started some works with concurrency API and got some troubles with
default resources, let me know what do you think about my PRs:

https://github.com/apache/tomee/pull/102
https://github.com/apache/tomee/pull/103


Best regard.
--
Daniel Cunha
https://twitter.com/dvlc_