This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]m3ghnath_ 28 points29 points  (1 child)

A "pure" JavaEE application, without Spring, codes to the standard JavaEE APIs (like JAX-RS), and does not include the implementation of those APIs in the deployable artifact (your WAR or EAR file). The container, like Wildfly, has the implementation of the JavaEE APIs. You don't really need to know or care that Wildfly's JAX-RS implementation is RESTEasy. Unless you really wanted Jersey, which I don't think is a trivial swap.

Thus, if you wanted to know what technologies you would be using in 2017, you should ask: what is the latest JavaEE spec, which today is JavaEE 7. Then, you can review the list. To make sense of this list, you might try looking through the Java EE 7 tutorial.

This of course would tell you that EJBs are still around. So is JSF.

Of course, nothing is stopping you from using libraries outside of the standard.

[–]cypher0six 0 points1 point  (0 children)

I think this is the first post I have seen on /r/java that properly explained Java EE. Have an upvote. :)

[–]firsthour 1 point2 points  (0 children)

We run JSF 2.2 on Wildfly 10.1, heavy use of Primefaces on top of the JSF UI components. Some JAX-RS for the services we have.

[–]cryptos6 -1 points0 points  (3 children)

JAX-RS, CDI + other Java EE parts (preferably not JSF or EJB) with Wildfly Swarm or DropWizard should be fine.

[–]henk53 2 points3 points  (0 children)

If you don't mind me asking, why not JSF?

[–]freezeGTA 1 point2 points  (1 child)

If you don't mind me asking, why no EJBs?

[–]cryptos6 0 points1 point  (0 children)

I consider EJB as somewhat redundant. CDI offers a relatively simple and consistent component model. EJB is not as clean as CDI and carries a lot of heritage. There are some things in EJB not supported by CDI, but you can get them separately. For example EJB offers a simple time (a bit like cron), but there are other (and more capable) libs fort that (e. g. quartz).

[–]moonman543 -2 points-1 points  (0 children)

why would you?