[wildfly-dev] dzone rant on resteasy/modules

ssilvert at redhat.com ssilvert at redhat.com
Sun Feb 9 14:35:20 EST 2014


On 2/7/2014 5:23 PM, Jason Greene wrote:
> Part of the problem we run into is that the spec says that all java ee APIs 
> are supposed to be available everywhere. We find situations were like people
> use a JSF API inside of a CDI initializer or an EJB initializer.
That is indeed a problem.

We should really push to have this part of the spec stricken or
revised.  In the case of JSF, I've seen customers run into real problems
when they try to access the JSF API from non-web tiers.  It might work
for some JSF API's but many calls will fail unexpectedly because there
is no underlying HttpServletRequest.

The lesson here is that you shouldn't let someone use an API in an
environment it wasn't designed for.   And the JEE spec should discourage
unintended use rather than make an unsupportable blanket statement that
everything can be used everywhere.
>
> On Feb 7, 2014, at 3:23 PM, David M. Lloyd <david.lloyd at redhat.com> wrote:
>
>> I think it was just expedience honestly.  I agree it would be better to 
>> selectively include API modules by subsystem.  Aggregate modules seem to 
>> just cause problems in practice.
>>
>> On 02/07/2014 03:14 PM, Bill Burke wrote:
>>> Chris sent me this rant on overriding built in Resteasy.  I replied how
>>> to fix it on his blog.  The biggest problem is javaee.api which sucks in
>>> every EE API.  Is there a reason you don't trust the subsystems to suck
>>> in the EE APIs they need?
>>>
>>>
>>> -------- Original Message --------
>>> Subject: dzone rant on resteasy/modules
>>> Date: Fri, 07 Feb 2014 13:49:02 -0500
>>> From: Chris Bredesen <cbredesen at redhat.com>
>>> To: Bill Burke <bburke at redhat.com>
>>>
>>> Just saw this by accident, have fun!
>>>
>>> http://java.dzone.com/articles/jboss-modules-suck-it%E2%80%99s
>>>
>>> -CB
>>>
>>
>> -- 
>> - DML
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
> --
> Jason T. Greene
> WildFly Lead / JBoss EAP Platform Architect
> JBoss, a division of Red Hat
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev



More information about the wildfly-dev mailing list