Top "Ejb" questions

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

Cannot instantiate the type List<Product>

I have the following code: List<Product> product = new List<Product>(); The error: Cannot instantiate the …

java list initialization ejb
Should I use @EJB or @Inject

I have found this question: What is the difference between @Inject and @EJB but I did not get any wiser. …

java jakarta-ee ejb cdi
Stateless and Stateful Enterprise Java Beans

I am going through the Java EE 6 tutorial and I am trying to understand the difference between stateless and stateful …

java jakarta-ee ejb ejb-3.1 stateful-session-bean
What to put into jta-data-source of persistence.xml?

What value should I place into <jta-data-source> of my persistence.xml? In glassfish admin panel I created a …

java jpa ejb jndi openejb
What does the @EJBs annotation do?

I know roughly what this construction does: it creates a SomeType EJB and injects the object into another EJB. @EJB(…

java jakarta-ee ejb
EJB's - when to use Remote and/or local interfaces?

I'm very new to Java EE and I'm trying to understand the concept of Local interfaces and Remote interfaces. I've …

java jakarta-ee ejb
What is an EJB, and what does it do?

Been trying to learn what EJB beans are, what does it mean their instances are managed in a pool, blah …

jakarta-ee ejb ejb-3.1
Inject an EJB into JAX-RS (RESTful service)

I'm trying to inject a Stateless EJB into my JAX-RS webservice via annotations. Unfortunately the EJB is just null and …

java rest jakarta-ee ejb jax-rs
How to deploy EJB based application on Tomcat

I developed a small Java application using EJB3 and JSF. But I want deploy it on Tomcat server (not GlassFish …

tomcat jakarta-ee configuration ejb
When to use Stateful session bean over Stateless session bean?

A stateful session bean is defined as follows: Stateful Session Beans The state of an object consists of the values …

jakarta-ee ejb stateless-session-bean stateful-session-bean