<!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: AS6 & Snowdrop2 multiple queries
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/dlmiles">Darryl Miles</a> in <i>Snowdrop</i> - <a href="http://community.jboss.org/message/594497#594497">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>First thanks for your&#160; reply.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1) Yes I agree from looking at the spring.deploy codebase (and testing by creating deliberate failure scenarios, like using the wrong label) that the parent/child must be getting setup at the time that code runs.&#160; But accoridng to my code inside the WAR which uses JNDI and examines the WAR ApplicationContext those settings do not stick, something is nulling the parent/parentBeanFactory out.&#160; I create this WAR code after my posting to this thread, so I shall paste the code and output in a new reply shortly.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2) Through trial-and-error/testing I found that the spring.deploy does not look inside the WAR.&#160; It was my understanding the JBoss VFS could see descriptors nested inside a mix of dirs/JARs, so JARs inside JARs are transparent from a scan for a valid deployment descritpor and for spring this means my WEB-INF/spring-context/warApplicationContext-spring.xml _SHOULD_ match and spring.deploy should see it.&#160; But my testing indicates that even so it does not attempt to deploy it.&#160; In some ways I am not expecting to but I could not see how it was being skipped.&#160; My EAR has an exploded EJB and WAR directory which makes it even more apparent, since even without JBoss VFS code a file-scan would find it.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So getting back to the question "Should a certain naming convention not be used" ?&#160; This means the file $JBOSS_HOME/server/default/my.domain.ear/my.domain.war/WEB-INF/classes/spring-context-warApplicationContext-spring.xml being a filre on the filesystem I would have expected it to be found by the spring.deployer.&#160; Since I know the Instantiaion(false) does not work.&#160; I wondered why it was being missed by the JBoss VFS code, if it is meant to be able to see descriptors from inside nested deloyments.&#160; This would make using /WEB-INF/classes/spring-context/warApplicationContext-spring.xml a _BAD_ choice of filename.&#160; Changing the -spring.xml would be a good chocie.&#160; However it appears to make no difference, since it is never looked at by spring.deployer so why is this ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>3) I'd like to come back to this point at a later date.&#160; After establishing my better understanding of the other points.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>4) beanRefContext.xml I need to understand this better, I have not been using it in any projects I've created so far.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>5) This is easy to observe, simply prepend the BeanFactory(label) with spring/ making it BeanFactory(spring/label) this used to bind to JNDI hierarchically.&#160; I'll try to knock out a simple EAR for JIRA later this week.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>Last) </span><a class="jive-link-external-small" href="http://docs.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/1.1/html/Snowdrop_Sportsclub_Example/index.html" target="_blank">http://docs.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/1.1/html/Snowdrop_Sportsclub_Example/index.html</a><span> this looks to be a relevant URL.</span></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/594497#594497">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Snowdrop 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>