Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: 1.1.0
-
Fix Version/s: None
-
Component/s: DSL for Services
-
Labels:None
Description
Currently:
<aop:pointcut expression="execution(* org.company.recordshop.service.OrderServiceModelLocalService.*(..))" id="OrderServiceModelServiceMethods"/> <aop:advisor advice-ref="txAdviceorderServiceModelService" order="30" pointcut-ref="OrderServiceModelServiceMethods"/>
Ie, the transaction is started when the LOCAL service is entered. This should be the DOMAIN service. In the current situation, a Transaction is still held open when the local service is busy adapting DTOs to domain object and vice versa. Since no business logic is done there, what's the point?
Solution:
Moved to AOP configuration to the applicationContext.xml in the business layer.
I can do this, if all agree it should indeed be in the business layer.
Issue Links
- relates to
-
MODFORJ-144
No id set for newly added dto's (update-service method)
-
Transaction boundaries should be in the business layer, not in the service layer. It seems to me that you are right.