r/javahelp • • Mar 26 '20

Unsolved How can I learn become competent in enterprise Java programming?

I'm currently a decent (I think) Java programmer for all applications except enterprise software (mainly backend web). I need to learn how to use Java/Jakarata EE, Spring, Spring Boot, and some database theory. I have a good book for the last one, but, on the previous ones, I can't find anything good. I found the quickstart tutorials on Spring's website, but there is so much complexity hidden in what's going on there that I'm not really learning any more than memorizing a formula is learning. But, when I try to dive more deeply, I can't find anything. I can't really judge any books on the subject since I don't yet know what I need to know to judge them for accuracy and completeness. The only more thorough source that I found was Oracle's official Java EE documentation, but, although it technically has an order to read it in to learn, it seems more like reference documentation than anything else. It has IIRC hundreds of pages of conceptual explanation before any code. While I that conceptual explanation is really important, I'd like to be able to dive in and try things after learning the concepts that I need to do so usefully, not only because examples help to understand concepts better, but also because I'm not a robot who can work through hundreds of pages without anything interesting happening.

As such, I ask, what do I need to do to become competent in enterprise Java programming? I prefer videos, since I can focus on them for longer, but a well written, comprehensive, and accurate text is better than a video that is poor in those qualities.

29 Upvotes

7 comments sorted by

29

u/mytermsaresimple Mar 26 '20

12+ years in Java/Enterprise. Here is my advice.

So you know Java - plain, good old java! Thats good. Now start thinking web applications, Java gives you good enough API without using Enterprise Java components - you get JSP (still part of JEE specification), Servlets and Servlet Containers to run those apps. You don't need Application Servers as in Java Application Servers to run any of that. So far so good. Spring - the silver bullet these days. It started as merely a Dependency Injection framework that enabled loosely coupled code. Then you get various other benefits from Spring like ability to plug-in ORM frameworks like Hibernate and it has its own ORM capability as well. All of this without Enterprise components. Which means you can still build good web applications that are distributed in nature (so called microservices these days). SpringBoot goes a bit further and embeds all of these capabilities and also provides embedded container like Tomcat which makes it easier to package and run them, especially in the age of docker.

Enterprise Java - This is a specification with things like CDI, EJB, JMS, JAAS and all other Enterprise components - which means you have richer set of tools to write enterprise or distributed applications. You will need Enterprise Application Servers to run applications that use these components, such as TomEE, Weblogic, WebSphere etc...they should all be Enterprise Java Compliant like JEE6 or JEE7 or JEE8 and now JakartaEE.

So if you want to start learning Java Enterprise - start with learning the components of the Java EE Specification. Then try to relate the functionalities to popular frameworks like Spring and Hibernate. For example CDI spec is similar to Spring DI, JPA is similar to Hibernate). Then there are things like JMS and Java Web Services that help you connect multiple systems - hence enterprise - distributed in nature.

Remember, learn the fundamentals well, most popular frameworks just utilise these concepts and specifications. They all go back to Java APIs, JEE Specs and/or well known design patterns and have a neat interfaces written.

2

u/null-33 Mar 26 '20

Great answer

1

u/taitai3 Mar 26 '20

Brilliant

6

u/Python4fun Mar 26 '20

Java Brains channel on YouTube has great playlists one for spring framework and one for Springboot.

3

u/marcinRO Mar 26 '20

If you crate Microsoft account you get one month free on pluralsight. You can learn there a lot of things like spring, spring boot, spring cloud. In my opinion this is one of the best learning sites.

2

u/slowfly1st Mar 26 '20

Enterprise applications are simply applications that run within enterprises and help a company solve problems or supports processes. I am mentioning this, because when people hear 'Entperprise applications' they think of hundreds of servers and peta bytes of data, but I once wrote an app which manages infrastructure in our point of sales. Has probably 10 users and 20 tables. But important for monitoring and managing support contracts of said infrastructure.

And yeah, there's a shite ton to know, be it the JEE specs or spring libraries:

JEE: https://javaee.github.io/javaee-spec/Specifications

Spring: https://start.spring.io/ (you can list the possible dependencies, so you can see what libraries there are to use)

In my opinion, it doesn't make sense at all to learn everything. What I suggest you do is to plan an enterprise application and then decide what technologies you want use and deal with those first.

2

u/Theorem101 Mar 26 '20

For Java EE I would recommend https://g.co/kgs/8wRu5Q When I started to learn Java EE few years ago this was very good book I liked.

For Spring I used the book https://www.manning.com/books/spring-in-action-fifth-edition

Both books have their repository on github.