Questions tagged [java-ee]

Java Enterprise Edition (JavaEE) is a platform for enterprise computing for Java.

Java Platform, Enterprise Edition (Java EE) 6 is the industry standard for enterprise Java computing. Utilize the new, lightweight Java EE 6 Web Profile to create next-generation web applications, and the full power of the Java EE 6 platform for enterprise applications. Developers will benefit from productivity improvements with more annotations, more POJOs, simplified packaging, and less XML configuration.

(taken from http://www.oracle.com/technetwork/java/javaee/overview/index.html)

149 questions
109
votes
5 answers

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's the environment used during development of the…
rdasxy
  • 3,323
  • 7
  • 29
  • 41
76
votes
4 answers

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 different blogs (exs: petrikainulainen and schauderhaft…
Eric B.
  • 1,229
  • 1
  • 9
  • 13
67
votes
1 answer

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 in detail?
Patryk
  • 1,269
  • 3
  • 13
  • 14
63
votes
6 answers

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 Java itself as well as the other frameworks use…
user10326
  • 1,834
  • 3
  • 17
  • 18
35
votes
2 answers

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 with the ecosystem, since most of my experience…
Fernando Correia
  • 465
  • 1
  • 4
  • 8
18
votes
5 answers

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 or not. Here is my project folder structure. Before…
15
votes
5 answers

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. Is there a good way to accomplish this kind of…
zamancer
  • 151
  • 1
  • 1
  • 3
13
votes
5 answers

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 for us. First, though, I have to become…
Michael
  • 273
  • 1
  • 2
  • 7
12
votes
2 answers

What is the difference between Enterprise Java vs Core Java?

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-Java or Enterprise Java. Now I have to ask is there…
kapricanon
  • 273
  • 2
  • 3
  • 6
10
votes
1 answer

Node.js Or servlets?

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 to something as mature as Java Servlets. But…
log N
  • 487
  • 2
  • 7
  • 13
9
votes
4 answers

Is your company thinking of transitioning from java to another technology?

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 years, the non-inclusion of closures is one example…
Augusto
  • 992
  • 9
  • 16
9
votes
3 answers

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 which I have included as it's necessary. I tried…
Rick
  • 203
  • 1
  • 2
  • 7
8
votes
2 answers

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 is to Extract the common exception code blocks…
dosakiller
  • 91
  • 1
  • 1
  • 2
8
votes
3 answers

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. Initially, the app was put together and some…
7
votes
1 answer

Log4j logger per class vs logger per application

I am stuck at understanding a concept related to Logger creation, especially in the context of Java EE. In my experience, I nearly always used one logger per application, with few cases when I needed a specific logger for a specific part of the…
XMight
  • 185
  • 1
  • 8
1
2 3
9 10