---
title: "integrate spring and jboss"
author: "winyee"
date: "2009-10-15T14:51:14Z"
tags: []
slug: "integrate-spring-and-jboss"
draft: false
lastmod: "2009-10-15T14:51:14Z"
id: 491324
url: "https://winyee.iteye.com/blog/491324"
---

<component-scan> 无法在jboss5.1as下使用

需要另外扩展applcationcontext.
https://anonsvn.jboss.org/repos/jbossas/projects/spring-int/trunk/

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213444

https://jira.jboss.org/jira/browse/SNOWDROP-4

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214297#4214297

在web.xml中可以指定applicationcontext的class


```xml

<context-param>
        <param-name>contextClass</param-name>
        <param-value>org.jboss.spring.vfs.context.VFSXmlWebApplicationContext</param-value>
    </context-param>
```