Hi,<div><br></div><div>I&#39;ve made a test and I&#39;ve got the same behavior. On the Cache injection point I&#39;ve got a warning saying that &quot;no bean is eligible for injection&quot;.</div><div><br></div><div>Which classes/annotations are missing? </div>

<div><br></div><div>I&#39;ve just seen that I&#39;ve missed to mention that <i>@ConfigureCache</i> annotation is only available since Infinispan 5.1.0.ALPHA1 (this annotation was previously named <i>@Infinispan </i>in 5.0/5.0.1).</div>

<div><br></div><div>--Kevin<br><br><div class="gmail_quote">On 22 September 2011 11:51, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@bleepbleep.org.uk">pmuir@bleepbleep.org.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Kevin, can you see what happens for you with the latest JBoss Tools and your example as well (when you have a minute!)<br>
<div><div></div><div class="h5"><br>
On 22 Sep 2011, at 11:49, Pete Muir wrote:<br>
<br>
&gt; Ok, so then I&#39;m not really sure why Alexey is seeing this problem ;-)<br>
&gt;<br>
&gt; What version of Infinispan did you use?<br>
&gt;<br>
&gt; On 22 Sep 2011, at 11:47, Max Rydahl Andersen wrote:<br>
&gt;<br>
&gt;&gt;&gt; The default cache manager is produced using a standard CDI producer, and the default cache is produced by a generic bean from Solder. How far along is your support for generic beans from Solder?<br>
&gt;&gt;<br>
&gt;&gt; Was done for M2 and a few bugfixes/improvements in M3:<br>
&gt;&gt;<br>
&gt;&gt; See <a href="http://docs.jboss.org/tools/whatsnew/cdi/cdi-news-3.3.0.M3.html" target="_blank">http://docs.jboss.org/tools/whatsnew/cdi/cdi-news-3.3.0.M3.html</a><br>
&gt;&gt; <a href="http://docs.jboss.org/tools/whatsnew/cdi/cdi-news-3.3.0.M2.html" target="_blank">http://docs.jboss.org/tools/whatsnew/cdi/cdi-news-3.3.0.M2.html</a> look for &quot;Solder&quot; and &quot;Generic&quot;<br>


&gt;&gt;<br>
&gt;&gt; &quot;CDI tools now supports generic beans. You can use generic beans in your project and CDI Tools won&#39;t be confused. So you will be able to use the general CDI Tools features such as validation, code completion, hyperlinks, refactoring, etc. to develop applications using generic beans as well as plan ones.&quot;<br>


&gt;&gt; <a href="https://issues.jboss.org/browse/JBIDE-8674" target="_blank">https://issues.jboss.org/browse/JBIDE-8674</a><br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt;<br>
&gt;&gt;&gt; The only thing that Infinispan does programmatically is bridge Infinispan events to CDI events. However this isn&#39;t working right now ;-) It also registers some of the JSR-107 annotations as CDI interceptors, which shouldn&#39;t cause errors at least (we might just loose some info for the user).<br>


&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 22 Sep 2011, at 11:14, Max Rydahl Andersen wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Alexey - exactly what I wanted to hear/see ;)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Pete/Kevin - wanted to let you know about the below thread concerning how<br>
&gt;&gt;&gt;&gt; the CDI tooling picks up the infinispan integration and *almost* works out of the box with it.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Was wondering if you guys tried it out and had ideas/suggestions to it<br>
&gt;&gt;&gt;&gt; and especially how/if we could get info from the integration to support the<br>
&gt;&gt;&gt;&gt; things that are contributed purely programmatically and thus not visible to the tools ?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;&gt; Max<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Sep 21, 2011, at 20:51, Alexey Kazakov wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I played with infinispan cdi module and tried to use that blog to test<br>
&gt;&gt;&gt;&gt;&gt; our CDI Tools.<br>
&gt;&gt;&gt;&gt;&gt; First at all it seems that the blog is not consistent with Infinispan<br>
&gt;&gt;&gt;&gt;&gt; CDI Module 5.0.1.Final (the latest final version). Some<br>
&gt;&gt;&gt;&gt;&gt; classes/annotations mentioned in the blog are missing.<br>
&gt;&gt;&gt;&gt;&gt; But in general CDI Tools works with infinispan CDI artifacts which use<br>
&gt;&gt;&gt;&gt;&gt; usual ways of declaration covered by JSR-299. But infinispan also uses<br>
&gt;&gt;&gt;&gt;&gt; its own CDI extension for registering some artifacts programmatically.<br>
&gt;&gt;&gt;&gt;&gt; Our CDI Tools doesn&#39;t support such dynamic stuff out of the box. We have<br>
&gt;&gt;&gt;&gt;&gt; to create a CDI Tools extension to provide a full support of infinispan<br>
&gt;&gt;&gt;&gt;&gt; cdi module.<br>
&gt;&gt;&gt;&gt;&gt; To do so, we need a good documentation to make sure we know how it<br>
&gt;&gt;&gt;&gt;&gt; should work in runtime or at least we need to have a stable source code<br>
&gt;&gt;&gt;&gt;&gt; which we can research to replicate it logic in our extension.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; For example:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; @Inject<br>
&gt;&gt;&gt;&gt;&gt; EmbeddedCacheManager defaultCacheManager;   // Works in CDI Tools<br>
&gt;&gt;&gt;&gt;&gt; since EmbeddedCacheManager is produced by standard CDI producer in<br>
&gt;&gt;&gt;&gt;&gt; infinispan cdi module.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; @Inject<br>
&gt;&gt;&gt;&gt;&gt; Cache&lt;String, String&gt; defaultCache;  // Can&#39;t be resolved by CDI<br>
&gt;&gt;&gt;&gt;&gt; Tools. This bean is registered by org.infinispan.cdi.InfinispanExtension<br>
&gt;&gt;&gt;&gt;&gt; programmatically.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On 09/21/2011 06:49 AM, Max Rydahl Andersen wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; Hi Alexey <a href="http://et.al" target="_blank">et.al</a>,<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Just saw this blog <a href="http://infinispan.blogspot.com/2011/09/when-infinispan-meets-cdi.html" target="_blank">http://infinispan.blogspot.com/2011/09/when-infinispan-meets-cdi.html</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Looks like a great example app to try out if our tooling picks up their annotations properly or<br>
&gt;&gt;&gt;&gt;&gt;&gt; if we or they need to do something differently ?<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; /max<br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;&gt; jbosstools-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; jbosstools-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; /max<br>
&gt;&gt;&gt;&gt; <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt; <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>