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.

EJB3 Transaction Propagation

I have a stateless bean something like: @Stateless public class MyStatelessBean implements MyStatelessLocal, MyStatelessRemote { @PersistenceContext(unitName="myPC") private EntityManager mgr; @…

transactions jakarta-ee ejb-3.0
EJB: Avoid Transaction rollback

When a (transactional) method of an EJB calls another (transactional) method of another EJB, and an exception is thrown in …

jakarta-ee transactions ejb ejb-3.0
Eager / auto loading of EJB / load EJB on startup (on JBoss)

EJBs seem to be loaded lazily - whenever accessed. However, I want to initialize them eagerly - i.e. whenever …

java jboss jakarta-ee ejb-3.0
Mocking Reflection based calls

I am trying to mock some reflection based methods. Below you can see the details, Class Under Test public class …

java mocking ejb-3.0 mockito
EJB 3.0 - Nested Transaction != Requires New?

I just read the Transactions Chapter (10) of "Mastering EJB 3.0" and now I'm confused about nested transactions. The book says "The …

jakarta-ee transactions ejb-3.0 nested-transactions
The simplest way to convert EJB 2.0 project to EJB 3.0

What is the simplest way to convert EJB 2.0 (WebLogic 8.1) project to EJB 3.0 (OAS or WebLogic etc)? I found just this …

migration ejb-3.0 ejb ejb-2.x
Consuming local EJB, in the same Container but different ears

I'm triying to consume a Local EJB in the same Glassfish, but different ears. But Glassfish can't found the local …

java jakarta-ee ejb ejb-3.0 glassfish-3
EJB 3 or Hibernate 3

Regarding a Java EE Web application which is going to be served by a full Java EE Application server e.…

hibernate jpa jakarta-ee ejb-3.0
call method on server startup

I am trying to call a method when my webapplication starts. The purpose is to kick-off a timer that does …

java jboss ejb-3.0
EJBException when calling entityManager.getTransaction()

This is probably something trivial, but I'd love some help. I get: javax.ejb.EJBException: java.lang.IllegalStateException: Illegal to …

java hibernate jpa transactions ejb-3.0