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

learn more… | top users | synonyms

0
votes
1answer
110 views

NoSQL in Java Enterprise Application

I'm planning a large scale enterprise application that requires reliability and standardization comfort that Java EE provides. At the same time, I'm wondering if I go for Java EE, will I be able to ...
0
votes
0answers
26 views

How does Hibernate Cascade on OneToOne work under the hood

I have the following entities corresponding to tables into DB: User, UserAttempt; User has a FK to UserAttempt, and UserAttempt has no knowledge of User. If I do the following inside a transactional ...
0
votes
0answers
69 views

How did “Stub” and “Skeleton” get their names?

In Java remote method invocation, the abstract method on the client-side is called "stub", which communicates with the "skeleton" on the server side and gets back the results. But why the names? For ...
-1
votes
0answers
73 views

how to control services running on a remote computer/server using java [closed]

I would like to know how could I start/stop a services running on a server (for ex various services like services.msc running in windows) using a java application. I would like to build a java web ...
2
votes
2answers
709 views

Is it possible to migrate struts/spring based application to GWT?

I am using the combination of spring, spring-security, struts and iBatis in my application. Now I am looking to migrate the struts UI to GWT. The new combination must be spring, spring-security, GWT ...
0
votes
1answer
40 views

Replace a enterprise JAVA EE enviroment with a lightweight solution

Currently I work in a company with several applications developed in Java, these applications share an "internal framework" with common task like find an employee, check user permissions, etc. These ...
0
votes
0answers
25 views

Writing test cases for another web service

I'm working in a team as a developer. We have developed a product where we generate letters by populating some XML file. This XML file ONLY contains some texts that need to show up in a pdf document. ...
3
votes
1answer
175 views

What are modern develop-deploy-test techniques for non-interpreted languages?

I have strong web-developer background, where in order to show client a demo I've uploaded a solution to demo environment and sent over a link. If case client asked to make changes, I did them in ...
-3
votes
1answer
128 views

Which is best practice to save uploaded images in a database or in a folder [duplicate]

I am developing a project in jsp and servlet and I am using mysql database, I want to upload many images from my application but I am confused where I save uploaded images in the database or in a ...
1
vote
1answer
220 views

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 ...
0
votes
0answers
16 views

Conceptually, how should a unidirectional multivalued relationship be implemented?

Ok, I'm trying not to upset the programmers list, but not so successful so far. My apologies. I'm trying to understand, conceptually and based on experience, which is the correct way for a JPA ...
1
vote
2answers
261 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 ...
3
votes
1answer
141 views

How to access environment-specific configuration in an enterprise application?

My application is a generic enterprise application which can be deployed on any application server running on any OS. I don't know how/where to configure my application, except for the database ...
1
vote
2answers
43 views

Where to store standalone.xml and other files so it is acessible in my CI server?

I am fairly new to JavaEE, so I have some concepts still missing. I am learning Docker to use it in our DEV / CI Build environments. I could make it work on my machine. But for it to work in the CI ...
0
votes
0answers
25 views

Good structure for customizable software/framework (JavaEE) with Maven

In a way this question touches similar issues like other before, for example this one: How to maintain different, customized versions of the same software for multiple clients It's a bit different ...
2
votes
1answer
372 views

Debugging xml and annotations

By now, most web containers have an annotation variant of their xml configurations for Java EE. I'm guessing this is because it's better to keep things in Java where they can be managed, coded with ...
2
votes
3answers
668 views

J2EE - Session swap

Application server - JBoss AS 7.1.1 JDK6 J2EE 1.3 My web application is more than 10 years old and facing this session swap problem in my portal. Noticed that swap happens mostly when many ...
42
votes
6answers
14k 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 ...
19
votes
4answers
2k 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 ...
4
votes
3answers
6k views

Heavy use of static methods in a Java EE web application?

Generally I am asking if this is a norm. The application architecture includes spring and the zk framework. I personally can't help but think this introduces a number of problems. I mean...this is a ...
0
votes
1answer
76 views

Under the hood of Java application servers resources

We are used to Node.js / Python / Insert X. Moving to a Java EE stack, it seems to me like all of the resources are 'press this button', 'do that' without any actual architectural explanation. For ...
5
votes
1answer
7k 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 ...
0
votes
1answer
347 views

DTO and JPA Version

I have DB tables representing Employees and Departments. The server side(JavaEE) contains JPA entities representing the same. The client is a standalone client and communicates with the server using ...
1
vote
2answers
418 views

What is a good way for Tomcat to interact with another Java application running on the local machine

I'm new to using Java within a web environment. At the moment I have a Java application that we run on a local machine, we'll call it the server app. We want to add the ability to communicate with ...
3
votes
2answers
896 views

Why Java does not have a framework like Rails? [closed]

I am a Ruby on Rails developer and I like its simplicity and rapidness. On the other hand we need to use Java for some projects that we develop for our clients. My question is why (pure) Java does ...
2
votes
3answers
3k views

Best way to consume REST service within Servlet on same server?

I'm builiding a web app and I'm implementing a RESTful API to expose the server to all sort of clients. On the web client I want to have both server rendering and client rendering. The majority of ...
2
votes
2answers
6k views

High-Load Java Server for Multiplayer

I am making a multiplayer game. Now I am trying to choose the technology to connect the android devices to the server. The clients run on Android, and the game is MMORPG. I would like to write the ...
0
votes
0answers
29 views

WebService NameSpace doubt

I am creating a java webservice. For that I am using @WebService annotation and @WebMethod for defining endpoint and service respectively. In both place I have option to provide targetNameSpace. Can ...
0
votes
1answer
632 views

Spring web application deployment infrastructure

I'm interested in hearing out what's out there in terms of tips and tricks on deploying and maintaining a Java web application whilst keeping agile. I'm running solo on a startup project I'd like to ...
1
vote
2answers
71 views

Module based project vs Normal project [closed]

I am writing code on top an established Enterprise application. I see that the application has 4 modules as shown below. -Srk -SrkEJB -SrkUtils -SrkWeb I have gone through the code and I see that ...
2
votes
0answers
109 views

Embedded tomcat cold deployment without service disruption

I have the following scenario. For various reasons I chose to use embedded tomcat for my rest backend that will form a cluster of AWS machines. I will want to deploy fairly frequently updates ...
3
votes
1answer
215 views

Best practices for programmatic describing of behavior of complex input forms

We have a complex web form (we use GWT/GXT stack) with lots of input elements of different types (text fields, selects, checkboxes, buttons), and behavior of these elements depends on each other. Now ...
0
votes
0answers
109 views

Microservices - remove unnecessary boilerplate?

My thoughts: microservices are becoming popular for distributed architecture java is (for now) a main course in enterprise applications JEE stack too How to reduce a boilerplate (including Maven ...
1
vote
3answers
376 views

Why is a architecture with anemic models the JavaEE standard?

I took a JavaEE course today and I was presented to the "default" JavaEE architecture, which consists mainly of Entities, Services and DTOs. The guy presenting the course explained that it was indeed ...
1
vote
1answer
239 views

How can I find what Resources a Java EE container provides?

How can I find what "Resources" a Java EE container provides? Can I discover this programmatically, or is there documentation I should refer to? (Note that the Java EE tutorial is vague on this ...
1
vote
0answers
90 views

handling external events in a cluster environment

I have an app written with JSF and Spring using JPA+Hibernate which is running on a Glassfish4 server. Right now I have an Observer pattern which is listening for some Postgresql events. Let`s say ...
1
vote
0answers
113 views

How is ORB distinct from an endpoint?

What, fundamentally, am I misunderstanding about how to use appclient? The Application Client Container (ACC) includes a set of Java classes, libraries, and other files that are required for ...
2
votes
1answer
96 views

Use of validators for simple validations

I've been working in Liferay code, and I've come across this construct a few times: List<?> list; ... if (Validator.isNotNull(list)) { //do stuff }} The source code for Validator.java ...
1
vote
3answers
236 views

SOA, Java EE and data organization

At the company I work for, we're currently splitting up our monolith solution into a number of small services (SOA). The purpose of this is to make the developers working on each chunk of code ...
2
votes
1answer
183 views

Java App as Tomcat Service?

I currently have a basic j2ee website. Currently, a jsp frontend gets data from the backend (the java program, lets call it object "Score"). The backend gets this data from a web site. <% Main m ...
2
votes
1answer
646 views

How to package static content outside of web application?

Our web application has static content packaged as part of WAR. We have been planning to move it out of the project and host it directly on Apache to achieve the following objectives. It's getting ...
4
votes
2answers
205 views

Toggling “maintenance mode” in Java EE app

I've been toying with the idea of feature toggles for various configuration/access purposes, but have been a little unsure of myself when it comes to toggling something like a downtime or maintenance ...
4
votes
3answers
7k views

Customer wants to modify the .properties files packaged in our WAR file

I have a customer who wants the ability to modify the .properties files packaged in the web applications WAR file so that they have the control to modify environments at settings. They will be ...
2
votes
3answers
483 views

Could the creation of many methods in Java affect performance? [closed]

I was told by a colleague that in Java, the performance may be worse if we create more methods, stacking many methods calling over them in JVM, specially in a Java EE environment. This seems to ...
1
vote
1answer
404 views

How to avoid model duplication in JavaEE web applications with a JSON front end

Recently we developed a web app that uses the following tech stack: hibernate as orm spring extjs (MVC javascript front end) For 1 business object, let it be a Personnel, we have: 1) a Personnel ...
42
votes
4answers
39k views

Dev vs Stage environment vs Prod Environment

I work for a company where we build enterprise applications, and we maintain three environments: dev, stage and prod. The meaning of dev is intuitive: it's the environment used during development of ...
7
votes
2answers
2k views

exact answer for “what is j2ee?” - job interview [closed]

I'd like to ask if someone of you knows the exact meaning of JEE. That's because a collegue of mine was asked this question in a job interview, and was "unable to answer properly"... to speak with ...
5
votes
6answers
1k 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 ...
0
votes
1answer
171 views

How should a JEE application store credentials for logging in to an external system?

I am in a situation where I have a Web Application (WAR) that is accessing a REST service provided by another application. The REST service uses Basic HTTP Authentication. So that means the ...
0
votes
3answers
451 views

Why do APIs generally consist of interfaces? [duplicate]

I am starting out in Java API design and in reading existing code bases, I have found that most APIs consist of interfaces only with their implementations bundled in a different package. Having read ...