Is it as simple as creating a POJO with @Transactional methods?
+1
A:
Yes, spring beans are pojos. You have to declare it in applicationCotnext.xml
or annotate it with @Service
.
Bozho
2010-09-09 16:04:36
+1
A:
In Spring you create it as normal bean and you specify session scope or @Scope
annotation.
amra
2010-09-09 16:53:47
+1
A:
Spring beans (i.e. properly declared) annotated with @Transactional
are comparable to Local Session Beans. For Remote Session Beans, you would have to add some remoting to your Spring configuration (RMI, Web Services, Hessian, Burlap, HTTP invokers). But Spring remoting does not support out of the box security and transaction propagation (unlike EJBs).
Pascal Thivent
2010-09-09 17:04:16