<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
@Autowiring of beans from Spring applicationcontext
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/vlad_pax">Vladimir Aguirre</a> in <i>Spring Integration</i> - <a href="http://community.jboss.org/message/543213#543213">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Marius:</p><p>Thank you, very nice.</p><p>I'm test with the next configuration:</p><p>beanRefContext.xml File:</p><p><span style="font-family: courier new,courier;"><bean id="context"<br/>        class="org.jboss.spring.vfs.context.<strong>VFSClassPathXmlApplicationContext</strong>"><br/>        <constructor-arg index="1"><br/>            <list value-type="java.lang.String" ><br/>                <value>applicationContext-log4j.xml</value><br/>                <value>applicationContext-service.xml</value><br/>                <value>sessionFactory-sc-context.xml</value><br/>                <value>dataSource-sc-context.xml</value><br/>            </list><br/>        </constructor-arg><br/>        <constructor-arg index="2" type="boolean"><br/>        <value>false</value><br/>        </constructor-arg><br/>    </bean></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have the next error:</p><pre>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'context' defined in URL [vfs:/D:/Java/AppsServers/Jboss/jboss-6.0.0.20100429-M3/server/default/deploy/armonica-ear-1.0-SNAPSHOT.ear/APP-INF/lib/armonica-negocio-1.0-SNAPSHOT.jar/beanRefContext.xml]: 2 constructor arguments specified but no matching constructor found in bean 'context' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)<br/>     org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:181)<br/></pre><p>I will test with Jboss 5, but tomorrow.</p><p><em>Muchas gracias mi hermano.</em></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/543213#543213">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Spring Integration at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>