<!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">JBoss 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;">
    Re: Deployer problem: Duplicate ApplicationContext &amp; Beans created
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/myddryn">Adam Sussman</a> in <i>Spring Integration</i> - <a href="http://community.jboss.org/message/563149#563149">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here is a trace of the spring deployer.&#160; This is done in a very simple setup.&#160; The only things in the 'deploy' directory are "hdscanner-jboss-beans.xml" (which is part of the jboss distribution) and "host-messenger-spring.xml" (which is the spring file seeing double deployment).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Let me know if you want more stuff logged.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/hdscanner-jboss-beans.xml<br/>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/hdscanner-jboss-beans.xml<br/>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deployed:&#160; vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/hdscanner-jboss-beans.xml<br/>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deployed:&#160; vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/hdscanner-jboss-beans.xml<br/>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:47,932 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:47,934 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deployed:&#160; vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:47,934 TRACE [org.jboss.spring.deployers.SpringParserDeployer] (main) Deployed:&#160; vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:47,988 TRACE [org.jboss.spring.deployers.ApplicationContextDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:47,988 TRACE [org.jboss.spring.deployers.ApplicationContextDeployer] (main) Deploying: vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml<br/>2010-09-22 10:44:48,073 INFO&#160; [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Refreshing org.jboss.spring.factory.NamedXmlApplicationContext@42bc5245: startup date [Wed Sep 22 10:44:48 PDT 2010]; root of context h<br/>ierarchy<br/>2010-09-22 10:44:48,073 INFO&#160; [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Refreshing org.jboss.spring.factory.NamedXmlApplicationContext@42bc5245: startup date [Wed Sep 22 10:44:48 PDT 2010]; root of context h<br/>ierarchy<br/>2010-09-22 10:44:48,221 INFO&#160; [org.jboss.spring.factory.NamedXmlBeanDefinitionReader] (main) Loading XML bean definitions from URL [vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml]<br/>2010-09-22 10:44:48,221 INFO&#160; [org.jboss.spring.factory.NamedXmlBeanDefinitionReader] (main) Loading XML bean definitions from URL [vfsfile:/home/myddryn/runtime/jboss/server/amq/deploy/host-messenger-spring.xml]<br/>2010-09-22 10:44:48,664 DEBUG [org.jboss.spring.factory.NamedXmlBeanDefinitionParser] (main) Loading bean definitions<br/>2010-09-22 10:44:48,664 DEBUG [org.jboss.spring.factory.NamedXmlBeanDefinitionParser] (main) Loading bean definitions<br/>2010-09-22 10:44:48,905 INFO&#160; [org.apache.camel.spring.handler.CamelNamespaceHandler] (main) camel-osgi.jar/camel-spring-osgi.jar not detected in classpath<br/>2010-09-22 10:44:48,905 INFO&#160; [org.apache.camel.spring.handler.CamelNamespaceHandler] (main) camel-osgi.jar/camel-spring-osgi.jar not detected in classpath<br/>2010-09-22 10:44:50,118 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Bean factory for org.jboss.spring.factory.NamedXmlApplicationContext@42bc5245: org.springframework.beans.factory.support.DefaultListabl<br/>eBeanFactory@6bfcc7a9: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,template,consumerTemplate,camel:beanPostProcessor,camel,activemq,host-messenger,PrettyJSON]; root of factory hiera<br/>rchy<br/>2010-09-22 10:44:50,118 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Bean factory for org.jboss.spring.factory.NamedXmlApplicationContext@42bc5245: org.springframework.beans.factory.support.DefaultListabl<br/>eBeanFactory@6bfcc7a9: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,template,consumerTemplate,camel:beanPostProcessor,camel,activemq,host-messenger,PrettyJSON]; root of factory hiera<br/>rchy<br/>2010-09-22 10:44:50,239 INFO&#160; [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (main) Loading properties file from URL [file:/home/myddryn/runtime/jboss/server/amq//conf/host_messenger.properties]<br/>2010-09-22 10:44:50,240 INFO&#160; [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (main) Loading properties file from URL [file:/home/myddryn/runtime/jboss/server/amq//conf/activemq.properties]<br/>2010-09-22 10:44:50,256 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@3a<br/>a9f827]<br/>2010-09-22 10:44:50,256 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@3a<br/>a9f827]<br/>2010-09-22 10:44:50,260 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.<br/>SimpleApplicationEventMulticaster@550dcd3]<br/>2010-09-22 10:44:50,260 DEBUG [org.jboss.spring.factory.NamedXmlApplicationContext] (main) Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.<br/>SimpleApplicationEventMulticaster@550dcd3]<br/>2010-09-22 10:44:50,260 INFO&#160; [org.springframework.beans.factory.support.DefaultListableBeanFactory] (main) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6bfcc7a9: definin<br/>g beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,template,consumerTemplate,camel:beanPostProcessor,camel,activemq,host-messenger,PrettyJSON]; root of factory hierarchy</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>At this point logs from the host-messenger-spring.xml beans show duplicate instantiation.</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/563149#563149">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>