Top "Ejb" questions

Enterprise JavaBeans (EJB) is a managed, server-side component architecture for modular construction of enterprise applications.

Unit testing an EJB with Mockito, TestNG and OpenEJB

I have the following EJB's: PersonService.java @Local public interface PersonService { long countPersons(); } PersonServiceImpl.java @Stateless public class PersonServiceImpl implements …

java ejb testng mockito openejb
Can I use CDI constructor injection for EJBs?

I want to do something like this: @Stateless public class GreeterEjb { private final Greeter greeter; @Inject public GreeterEjb(Greeter greeter) { …

java ejb cdi
EJB - Lookup failed for 'ejb/BookRequestBean'

I am new to EJB, and was trying "Hello World" type of EJB Java program. Here is my EJB: package …

java jakarta-ee ejb ejb-3.0 glassfish-3
difference between jsf beans and ejb beans

I need some clarification. I know how to work with JSF and its corresponding session beans, but i am getting …

java jsf jakarta-ee ejb
Injecting datasource in EJB

When you inject a datasource in your application and get a connection by invoking getConnection() on it, are you supposed …

java jakarta-ee ejb
Difference between a managed bean and a session bean

Say I have an Entity class, Car.  @Entity public class Car My IDE lets me automatically generate session beans from …

java jsf jakarta-ee ejb
Invalid ejb jar: it contains zero ejb.

I have 2 modules: ejb and war, and ear module, that contains them. Modules build successfully, but when I try to …

glassfish ejb ear
WFLYJPA0060: Transaction is required to perform this operation (either use a transaction or extended persistence context)

I losted many time try solve this issuer, but I am in the same place. I suspect that I mixed …

java jpa ejb cdi wildfly-9
Load spring context in an EJB based application

The following is the situation : I have a business layer, that is an EJB project. In fact, there is only …

java spring jakarta-ee ejb spring-remoting
Using a Stateful Session Bean to track an user's session

it's my first question here and I hope that I'm doing it right. I need to work on a Java …

session ejb javabeans httpsession stateful