static « Transaction « Spring Q&A





1. Hibernate and Spring transactions - using private constructors/static factory methods    stackoverflow.com

We have a Hibernate/Spring application that have the following Spring beans:

<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" />
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" />
When wiring the application together we get the following error when using private constructors in ...

2. @Transaction working for TestCase but not static main()    forum.springsource.org

@Transaction working for TestCase but not static main() Howdy, I started a new project today and can't figure out what I am doing wrong. I have a good classpath (built with ...

3. @Transactional and static method    forum.springsource.org

Hello, I have met behavior that I do not completely understand: I have following clss Code: public class A { ApplicationContext ac= new ClasspathXmlApplicationContext("aContext.xml"); public static void main(String args) { new ...

4. Transactional static methods for Roo-generated Entity classes    forum.springsource.org

Transactional static methods for Roo-generated Entity classes Hi, Another issue I'm facing with Roo's rich Entity model: How do I go about marking static methods transactional? I would like to be ...