<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The spec does not actually guarantee that the beans will be available in the AfterBeanDiscovery event.<div><br></div><div>As it is possible to add beans/interceptors/decorators in this event CDI is not fully initialised yet, so even if this does sort of work some times it is certainly not portable. Have you considered using a ComputingHashMap to create the map in a lazy manner?&nbsp;</div><div><br></div><div>Stuart<br><div><br></div><div><br><div><div>On 13/02/2011, at 6:44 AM, Jordan Ganoff wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>All,</div><div><br></div><div>I've run into an issue that I haven't been able to resolve. I am collecting producers during ProcessProducer and I'd like to be able to invoke them during AfterBeanDiscovery to operate on the produces objects. When I run the application with Arquillian the beans can be looked up successfully. When the application runs as a web app they are not.</div>


<div><br></div><div>The sample app is producer-test on this branch of seam-jms:&nbsp;<a href="https://github.com/jganoff/jms/tree/producer-test/producer-test">https://github.com/jganoff/jms/tree/producer-test/producer-test</a></div>
<div><br></div><div>The relevant code is here:&nbsp;<a href="https://github.com/jganoff/jms/blob/producer-test/producer-test/src/main/java/org/jboss/seam/jms/producertest/TestExtension.java">https://github.com/jganoff/jms/blob/producer-test/producer-test/src/main/java/org/jboss/seam/jms/producertest/TestExtension.java</a></div>
<div>

<br></div><div>Anyone have any ideas?</div><div><br></div><div>Follow up question: Is this a decent way for users to configure JMS routing information (send CDI event X to JMS destination Y, etc)? The original idea was to allow users to annotate methods with &nbsp;@RoutingConfig and what they returned would be registered as a route. The producer idea seemed like a better fit though.</div>

<div><br>-- <br>Jordan Ganoff<br>
</div>
_______________________________________________<br>seam-dev mailing list<br><a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/seam-dev<br></blockquote></div><br></div></div></body></html>