ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How Spring Support Struts?

1. ContextLoaderPlugin

Loads a Spring application context for the Struts ActionServlet.

Struts Actions are managed as Spring beans.

Pre-built convenience classes to provide access to the context. 

Provides methods in superclass for easy context lookup.

<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">    <set-property property="contextConfigLocation"  value="/WEB-INF/applicationContext.xml"/>

</plug-in>

 

2. ActionSupport and DispatchActionSupport

Explain Transaction Management in Spring ?

 

1. DataSourceTransactionManager :

  PlatformTransactionManager implementation for single JDBC data sources.

 

2. HibernateTransactionManager: PlatformTransactionManager implementation for single Hibernate session factories. Binds a Hibernate Session from the specified factory to the thread, potentially allowing for one thread Session per factory.

 

3. JdoTransactionManager : PlatformTransactionManager implementation for single JDO persistence manager factories. Binds a JDO PersistenceManager from the specified factory to the thread, potentially allowing for one thread PersistenceManager per factory.

 

4. JtaTransactionManager : PlatformTransactionManager implementation for JTA, i.e. J2EE container transactions. Can also work with a locally configured JTA implementation.

Related Posts Plugin for WordPress, Blogger...
Flag Counter