Questions tagged as 'ejb'

2
answers

Spring Security with Java EE

Hello, I'm developing a Maven Enterprise Application EAR project and I'm currently implementing the authorization part using Spring Security with Annotation instead of xml. Project Structure: FileAppConfig.javapackagebr.com.seguranca.confi...
asked by 11.05.2015 / 16:21
1
answer

What is the difference between @Inject and @EJB in the injection of an EJB?

I have an EJB that depends on another EJB, so I'm going to use dependency injection to satisfy this dependency. My question is: what is the difference, advantage or disadvantage between @Inject and @EJB.     
asked by 29.08.2014 / 16:41
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
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

EJB Project Division

I have an EJB project, to do the system deployment the project needs to be divided into 3. The Database on a machine The user interface on another host And EJB (Services) in another Only the system is fully developed in ejb, the EAR p...
asked by 11.06.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

Definition of EJB

Please forgive me for the generic subject, but I have been researching for a long time in a number of places and have not found anything that would satisfactorily explain what an EJB really is and what it does. I am adept at using real exampl...
asked by 09.06.2014 / 22:52
2
answers

FetchType.EAGER for FetchType.LAZY

I have the following problem, the whole system uses a relation, Eager, but for a specific query I do not want to bring all the relations in the database, because it would be very cumbersome, just for this query I can change the parameter to Lazy...
asked by 17.04.2014 / 15:35
1
answer

Spring and EJB have the same functionalities?

Does Spring and EJB have the same functionality? If not, can you use both in the same application?     
asked by 06.09.2016 / 13:47
1
answer

Error while deploying EJB project with lambda using glassfish 4

I have two java files in my project First.java package br.com.bom; import javax.ejb.Stateless; @Stateless public class Primeiro { } Second.java package br.com.bom; import javax.ejb.Stateless; import java.util.ArrayList; import j...
asked by 17.09.2015 / 13:15