[jboss-user] [JBoss/Spring Integration] - Re: Spring Component Auto Detection
zithuba
do-not-reply at jboss.com
Tue Aug 19 08:18:59 EDT 2008
Hi,
The jboss-spring.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
BeanFactory=(core-simple-batch-job)
and a-status-mailer-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:annotation-config/>
<aop:aspectj-autoproxy/>
<context:component-scan base-package="za.ac.batch.aop"/>
<!--tx:jta-transaction-manager / -->
<tx:annotation-driven/>
<context:property-placeholder location="classpath:conf/mail.properties"/>
<!-- this is a template message that we can pre-load with default state -->
The application have couple of beans (2 to be exact, entity and session not useful) and then classes that are AOP advice and that are being auto detected.
I hope this is fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171245#4171245
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171245
More information about the jboss-user
mailing list