We use an EJB2.x beans object with BMP resilience management (bean). It looks like BMP is not supported in EJB3. We wanted to stay up to date and upgrade to EJB3. Does anyone know if there really are any BMP options available in version 3.0?
From what I can say using 3.0, all beans entities should use JPA, and by the definition of ORM. There are several options for using native SQL, but this is still just a way to use JPA to implement ORM.
I was not sure if there was another EJB3 approach to achieve the same functionality as the EJB2.x BMP beans object. Currently, we use the standard ejbStore method to update the database through our own SQL and the ejbLoad method to search for all beans and update the bean in case of a transaction rollback. I thought you could do this with an EJB3 beans session, but I was not sure.
Perhaps, instead of switching to EJB3 beans, we should switch to Spring.
source
share