Questions tagged as 'java-ee'

1
answer

Differences @OneToMany, @ManyToMany, @ManyToOne, @OneToOne [duplicate]

I wanted to mount a database with Java Hibernate like the one below: Questions: What is the difference between @OneToMany , @ManyToMany , @ManyToOne , @OneToOne ? And what would your statement look like in...
asked by 04.09.2017 / 20:26
2
answers

Add multiple objects to a list

I'm developing a web application where I have a list of an object called frames , well, every time I click on a button I add a new object to that list, but the problem is this: When I try to add a new object for the 2nd time to this list,...
asked by 23.06.2015 / 03:25
1
answer

User without access to mapped resources in Security-role of web.xml

What is the behavior of security-role of web.xml when user is not allowed access to project resources? Is the weblogic default to return a 404? Is this status configurable? Is there a possibility that when security identif...
asked by 24.08.2017 / 16:46
1
answer

Compensates to migrate from Swing to JavaFX?

Currently most of my applications are made with Swing. I've done 2 small web projects with JSF + Primefaces + Hibernate. My question is this: Is it worthwhile to go out of Swing and study JavaFX, or is it better to study the Web part more a...
asked by 13.05.2015 / 16:40
3
answers

What is JBOSS?

I'm reading a book on Distributed Applications and he occasionally references JBoss. I would like to know what it consists of and what is its usefulness?     
asked by 10.12.2015 / 15:53
1
answer

Is it possible to have Java SE and Java EE on the same machine?

Can I install Java SE and Java EE on the same machine?     
asked by 15.12.2016 / 20:04
2
answers

JAX-RS Resource as Session Bean or CDI Managed Bean?

Today I ran into an interesting problem when trying to inject an EJB into a JAX-RS resource (in GlassFish 4.1, running the preinstalled version of Jersey). @Stateless public class MeuEJB implements MinhaInterface { // código } @Path("camin...
asked by 26.09.2014 / 23:09
1
answer

How to create an application from a Maven file?

I was working with EJB and dealing with four simple Maven projects, a web project, a desktop (JSE Swing), a project (JSE) that had only the interface and lastly a web project (which I called Core ) that implemented this penultimate project that...
asked by 22.12.2015 / 17:09
2
answers

EntityManager with JTA multiple connections

I'm having a rather unusual problem, but I'm looking for a solution. I have a scenario where I have several database bases (postgresql) allocated on multiple clients, all databases have the same structure, but with different records. I hav...
asked by 19.09.2014 / 19:33
3
answers

Change a date from yyyy-MM-dd to dd-mm-yyyy

I have dataTable where I display some data but the date is coming in yyyy-mm-dd format how do I change the format of this date so that I can display it correctly in my dataTable ? And where do I do this formatting? In Bean or...
asked by 14.07.2015 / 14:03