Questions tagged [java-ee]
Java Enterprise Edition (JavaEE) is a platform for enterprise computing for Java.
150 questions
110
votes
5
answers
143k
views
Staging environment vs Production environment
I work for a company where we build enterprise applications, and we maintain three environments: development (or dev), staging (or stage) and production (or prod).
The meaning of dev is intuitive: it'...
78
votes
4
answers
55k
views
Dependency Injection: Field Injection vs Constructor Injection?
I know this is a hot debate and the opinions tend to change over time as to the best approach practice.
I used to use exclusively field injection for my classes, until I started reading up on ...
67
votes
1
answer
21k
views
What are these different Java versions for?
I am just about to start my Java journey, ( I've already dabbled in C++) but I am getting really confused about all the different versions of Java:
JavaSE
JavaEE
JavaFX
etc.
Can someone explain these ...
63
votes
6
answers
32k
views
Is object pooling a deprecated technique?
I am very familiar with the concept of object pooling and I always try to use it as much as possible.
Additionally I always thought that object pooling is the standard norm as I have observed that ...
35
votes
2
answers
38k
views
Selecting a JAX-RS implementation for a new project
I'm starting a new Java project which will require a RESTful API. It will be a SaaS business application serving mobile clients.
I have developed one project with Java EE 6, but I'm not very familiar ...
18
votes
5
answers
77k
views
Java web application folder structure
As a beginner to J2EE, I have recently started developing my own project from scratch using the Core of J2EE : Servlets & Jsps.
I could not evaluate whether my project folder structure is right ...
16
votes
5
answers
41k
views
How to unit test a jsp file?
I'm developing a Java 6 EE application and I'm testing my jsp code with another one with a testing version of the function calls and code used in the original one but it seems loose and impractical. ...
13
votes
5
answers
21k
views
Creating Java EE Projects with Maven
I've been developing Java EE web apps with Eclipse for about a year. My employer doesn't use Maven, but the more I read about it, the more convinced I am that Maven + Hudson will be greatly beneficial ...
12
votes
2
answers
61k
views
What is the difference between Enterprise Java vs Core Java? [duplicate]
I have some experience in programming in Java but wondering if someone could explain what is the difference between Enterprise Java vs Core Java?
Someone asked me a question on whether I use core-...
10
votes
3
answers
36k
views
How to reduce size of jar file?
I dont know how to reduce the size of jar file.
When we normally code in Java Swing the jar file is created, is there any way to reduce the size of jar file? I can't remove the images and other stuff ...
10
votes
1
answer
16k
views
Node.js Or servlets? [closed]
I have heard a lot and read about the Javascript server side language i.e Node.js, and saw many comparisons in favor of Node.
I don't understand what makes it better or faster, or how it even relates ...
9
votes
4
answers
3k
views
Is your company thinking of transitioning from java to another technology? [closed]
As every Java developer knows, Oracle bought Sun and the future of java looks quite unclear, specially since Oracle wants to monetize the JVM. Java as a language has also been stale in the last few ...
8
votes
3
answers
3k
views
When, how and why should one upgrade (Java) frameworks?
Short summary as introduction:
We are a small Java web development team, creating applications using various frameworks and libraries like JSF, Hibernate, Seam, all together deployed in JBoss AS.
...
8
votes
2
answers
17k
views
How to remove duplicate exception block code
I have good number of Service and DAO classes which has the same set of 30 line exception code block which gets repeated and it shows up in Code Duplication report.
The approach which I can think of ...
7
votes
6
answers
2k
views
Desktop to Web - How to deal with user-interactive workflows
I start a new project this summer, consisting in developing a web version of a proprietary desktop ERP.
The main goal of my company is to be able to propose a web version of its ERP, with all ...