Top "Ejb-3.0" questions

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.0 programming model.

What is the difference between DAO and Repository patterns?

What is the difference between Data Access Objects (DAO) and Repository patterns? I am developing an application using Enterprise Java …

hibernate domain-driven-design ejb-3.0 repository-pattern data-access-layer
use of entityManager.createNativeQuery(query,foo.class)

I would like to return a List of Integers from a javax.persistence.EntityManager.createNativeQuery call Why is the following …

java jpa ejb-3.0
"detached entity passed to persist error" with JPA/EJB code

I am trying to run this basic JPA/EJB code: public static void main(String[] args){ UserBean user = new UserBean(); …

java jpa ejb-3.0
javax.naming.NameNotFoundException

I am running an example of ejb using JBoss5 Container. I am using an example from here(Part one). In …

java jboss jakarta-ee ejb-3.0 jndi
Batch inserts using JPA EntityManager

Is there a way where we can use batch inserts using JPA EntityManager. I know there is no direct way …

java jakarta-ee ejb-3.0 eclipselink
Spring vs EJB. Can Spring replace EJB?

Since Spring is able to use transactions just like EJB. For me, Spring is able to replace the requirement of …

java spring ejb-3.0
JBoss transaction timeout setting?

We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the …

jboss timeout ejb-3.0 transactions jboss5.x
Successful build in Maven still showing errors in Eclipse

I'm having something quite peculiar here, my build is successful in maven when I type "mvn clean install" however once …

java eclipse maven ejb-3.0
java.lang.IllegalStateException: Multiple representations of the same entity with @ManyToMany 3 entities

I have 3 entities with ManyToMany relationships: Role Entity: @Entity public class Role { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer roleID; …

java hibernate jpa jpa-2.0 ejb-3.0
JPA and Table Views. Can it be done?

We currently have a Java EE system where we are mapping to our database using JPA. It is a fairly …

java jakarta-ee jpa view ejb-3.0