Lance Java wrote
> 
> Take a look at the tapestry-spling 5.0 compatability mode
> http://tapestry.apache.org/integrating-with-spring-framework.html#IntegratingwithSpringFramework-5.0CompatibilityMode
> 

I have compatibility mode enabled in my web.xml:

    <context-param>
        <param-name>tapestry.use-external-spring-context</param-name>
        <param-value>true</param-value>
    </context-param>

I have my Spring beans defined there as well:

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:/applicationContext-resources.xml
            classpath:/applicationContext-dao.xml
            classpath:/applicationContext-service.xml
            classpath*:/applicationContext.xml
            /WEB-INF/applicationContext*.xml
            /WEB-INF/cxf-servlet.xml
            /WEB-INF/security.xml
        </param-value>
    </context-param>

    <listener>
       
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

And in /WEB-INF/applicationContext.xml, I have a personManager bean defined:

    <bean id="personManager"
class="org.appfuse.service.impl.GenericManagerImpl">
        <constructor-arg>
            <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate">
                <constructor-arg value="com.company.model.Person"/>
            </bean>
        </constructor-arg>
    </bean>

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-3-Spring-3-1-and-Inject-tp5711099p5711380.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to