<!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="https://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;">
    SEAM application  - Clustering works for SFSB annotated with @Clustered but does not work for Non-
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/dmartfw1">David Martin</a> in <i>Clustering Development</i> - <a href="https://community.jboss.org/message/725993#725993">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Just curious if anyone can help me out with this issue:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've created a Seam Component that has a scope of Conversation and in it I am injecting a Seam component that has a scope of Session.&#160; I get the following exception when the component is invoked (via an el expression binding):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>08:07:36,819 WARN&#160; [/osrs] Failed to replicate session sqOk+VEjdw4H3NXWuqrIzw__</p><p>org.jboss.seam.RequiredException: @In attribute requires non-null value: scoring</p><p>ManagementAction.breadCrumbStackView</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.Component.getValueToInject(Component.java:2361)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.Component.injectAttributes(Component.java:1739)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.Component.inject(Component.java:1557)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterc</p><p>eptor.java:61)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation</p><p>Context.java:68)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.seam.persistence.ManagedEntityInterceptor.aroundInvoke(Mana</p><p>gedEntityInterceptor.java:48)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The application is configured for clustering and at startup looks good:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>08:05:44,670 INFO&#160; [DefaultPartition] Number of cluster members: 1</p><p>08:05:44,671 INFO&#160; [DefaultPartition] Other members: 0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If I convert the same component over to a SFSB and include the @Clustered annotation, everything work fine.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is all happening locally in my development environment.&#160; I am using JBoss AS 5.1 and Seam 2.2.2.Final.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is a snippet from the Seam Component that is failing:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@Scope(ScopeType.CONVERSATION)</p><p>@Name("scoringManagementAction")</p><p>@Restrict("#{identity.loggedIn}")</p><p>public class ScoringManagementAction implements Serializable, ScoringManager, Mutable {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; private static final long serialVersionUID = -1266492462210968391L;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Logger</p><p>&#160;&#160;&#160; private Log log;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>....</p><p>....</p><p>&#160;&#160; </p><p>&#160;&#160;&#160; @In(required = true, scope = ScopeType.SESSION)</p><p>&#160;&#160;&#160; @Out(required = true, scope = ScopeType.SESSION)</p><p>&#160;&#160;&#160; private BreadCrumbStackView breadCrumbStackView;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>....</p><p>....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public boolean clearDirty() {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; final boolean isDirtySet = this.scoringView.isDirty();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.scoringView.setDirty(false);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return isDirtySet;</p><p>&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks for your help.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/725993#725993">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Clustering Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2103">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>