service « Transaction « JPA Q&A





1. Data Transfer Objects and transactional service methods    stackoverflow.com

Is there any truly practical way to avoid using DTOs, when passing data through Hibernate-backed transactional service methods? In other words, are DTOs the only non-hacky solution to avoiding lazy initialization ...

2. Reading objects from database after a service method rollback    stackoverflow.com

I have a grails service that is persisting some changes. If I rollback the transaction in the service class, throwing a RuntimeException, and later (in the same request) I try to ...

3. DAO and Service Layer with hibernate    stackoverflow.com

im in trouble with implemenetation of a service layer, i think i did not understand this concept very well. In a DAO implementation i can write all CRUD logic for a specific ...

4. Calling a HTTP service within a JPA/JTA transaction - transaction integrity    stackoverflow.com

I have a JSF/EJB/JPA application which uses container managed persistence. There is one case where a call is made to an external service via HTTP which has a cost, this cost being allocated ...

5. Transaction on Webservices    forum.hibernate.org

6. JBoss MBean Service Transactions    forum.hibernate.org

Hello, I'am using Hibernate Version 2.1 with JBoss 3.2.3 as MBean service. In a 3 Tier application I want to use CMT Stateless-Session-Beans as facade for the Hibernate persistencelayer. This works so far, but I'am not sure if I'am using the MBean Service correctly. Code: ...

7. transaction w/service call    forum.hibernate.org

I have an email service that I need to run as part of a transaction. i.e. modify object, save, send email, (if all is good) commit transaction. If the email fails however I don't want to commit the transaction; but I also want to be sure the db transaction will commit correctly. can you do something like: myPojo.save() session.flush ?? // ...

8. transactions with service methods in hibernate    forum.hibernate.org

Hey, I'm wondering if I'm doing it right. I always build my applications with service layers. So in front I have my struts layer that communicates with my service layer. My service layer communicates with my DAO layer. Well know, I manage transactions at the service layer. Because that's where my business logic is. Now before I used hibernate I always ...