Questions tagged [java-ee]
Java Enterprise Edition (JavaEE) is a platform for enterprise computing for Java.
150 questions
2
votes
5
answers
746
views
Is Exception caught in the Service class a matter of preference?
In a Java EE legacy project, almost all the DAO and Service classes are written in a a way that DAO level does not catch any exception and instead the service classes catch(Exeption e) in all of their ...
1
vote
1
answer
108
views
How to represent CDI interceptors in class diagram?
I have the following classes:
public class MyCaller{
@Inject private MyService service;
private void callerMethod(int arg1, String arg2){
service.serviceMethod(arg1, arg2);
}
}...
2
votes
3
answers
309
views
Pattern for syncing databases with undo option
I work on a large and old application consisting of a server and a fat client. Part of what the application does is handle a large-ish (a few 100MBs) database of frequently changing data (~a dozen ...
2
votes
1
answer
115
views
Which is the better architecture to follow for API Development in Java using any RDBMS database backend?
This question is regarding the better architecture to follow for API Development in Java using any RDBMS database backend.
Currently, we are using the below approach to fetch data from database and ...
1
vote
7
answers
719
views
Dealing with large code base quickly in agile
At my current company, the project I work on is coded in Java, at least for the systems / backend part. Whenever I get assigned a task dealing with the Java code, it take me hours or even days to ...
0
votes
0
answers
24
views
Updating an entity and many relationships: database vs application layer
We are working on a transformation project
It has records in table entityA and entityB, which has a relation entityAB.
We need to delete records in table entityA and recreate them with some other ...
0
votes
1
answer
355
views
How to document changes to a project
A company I work with uses a "skeleton" project as base scaffolding for each project they have.
I work on several edits to the skeleton. Some of them are few lines on huge source files. What's a good ...
-1
votes
1
answer
81
views
What is the benefit of the specification approach in JavaEE?
What is the benefit of having multiple implementations just for doing one thing? Are there any other languages that use this concept?
1
vote
1
answer
115
views
Architecture approach for developing a XML generator application
I am working to on an application which generates XML based on user input.
Currently the application is in Design phase. And I am really confused on how to progress on this.
Well the Idea is that:
...
0
votes
1
answer
835
views
X.509 authentication for microservices with JavaEE [closed]
I am trying to design an app that is based on microservice architecture. Backend is written in JavaEE (micro profile, not Spring Boot), while for front-end I would use Angular5.
Now I am wondering ...
1
vote
0
answers
87
views
Is it okay to have an asymmetric relationship between entities in a JavaEE data model?
I'm having difficulties assessing a design decision regarding entity relations in a JavaEE persistence data model.
Let's say I want to design a simple data model that's supposed to represent a ...
5
votes
0
answers
2k
views
Understanding the data flow in Spring REST layered architecture
I am new to Spring as well as layered architecture. So am a bit confused as how data flows among the different layers.
What so far I have understood is:
Layers:
Controller (which accepts requests)
...
0
votes
2
answers
1k
views
Correct way to separate JPA with Service layer
I have two tables:
area (
id int PK autoincrement
code varchar
)
products (
id int PK autoincrement
name varchar
area_id int PK to AREA
...
)
The classes are persisted using eclipselink ...
0
votes
0
answers
154
views
Why was the Java EE specification created?
I am trying to understand the goals of Java EE specification.
I suppose Sun could just build a software package offering all those functionalities? Kind of like Spring.
Instead they thought it was ...
2
votes
1
answer
1k
views
How would you create a custom CDI @ProcessScope?
I am coding a Java EE application that provides REST services via JAX-RS resource classes, the application makes extensive use of CDI.
My resource classes are @RequestScoped, the application returns ...
-4
votes
2
answers
4k
views
What is best one between JSF and angular for java hibernate,spring,strut application?
I want to develop application using java frameworks(spring,hibernate,strut). This application has large complex operations.I want to know what is the best between JSF and angular? As well as i want ...
2
votes
1
answer
248
views
Pass Objects or values as parameters to functions
I'm working with JEE standard. I have the following layers: JPA (Eclipse Link), Data Access, Business Logic, and JSF (Primefaces). Primefaces uses MVC design pattern, so the the presentation layer ...
3
votes
0
answers
119
views
Are Remote EJBs the right way to go?
I am planning to remodel my current application and I am not sure if this is the right approach.
Currently
I have a Java Enterprise server application with 3 web-applications and an ejb-application ...
1
vote
2
answers
1k
views
Web Application Architecture review and understanding
I'm an amateur java developer and I have been working on this web application in my current company. The application is made in the Spring MVC framework. Hibernate is used as the ORM tool while the ...
0
votes
1
answer
143
views
Divide java web app into smaller web app
I've a web application that consists of 3 main technologies: JSF, jax-rs and websocket. All three are coupled together with the help of CDI injection and JPA.
That means that when a user login, he ...
3
votes
1
answer
2k
views
Best way to deliver and deploy JEE application to client
I've worked for a few companies and even developed projects on my own - these projects were based on Java Enterprise Edition. Sometimes with Spring Framework involved, sometimes it was a pure JEE. ...
3
votes
1
answer
270
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 ...
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 ...
1
vote
2
answers
365
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
1
answer
237
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 ...