Hi Manik, thanks for taking the time to look at this. To answer your question, the simple  reason for allowing this change is to make the cache independent of an mbean server.   I would argue that there are plenty of older j2se apps out there that could make use of the cache, but are perhaps not ready to make the jump to a full AS.
<br><br>But there are other reasons.<br><br>Consider, for example, the case where a given application can deploy on and obtain firewall permissions for only one tcp port.&nbsp; If that application needs to provide jgroups functionality of both the sync and async type, then there&#39;s little choice but to multiplex a single jchannel.&nbsp; Since I want to use JbossCache, I have little choice but to grab the cache&#39;s Rpcdispatcher and send my own messages, since I cant get a jchannel out of jbosscache either.
<br><br>I guess that&#39;s both ends of the argument.&nbsp; Either solution would work, either allow us non-AS folks to inject our own channel to the cache, or provide us a means to fetch one out.&nbsp; My patch, which is working ok for me here, does the former.&nbsp; The single additional method on the factory requires a complete configuration, which will hopefully discourage all but the most stubborn from trying to use it.
<br><br>But I think you&#39;ll win some new cache customers if you provide it.&nbsp; <br><br>Regards,<br><br>Bill Middleton<br><br><br><br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Manik Surtani
</b> &lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry for being so late jumping in on this.
<br><br>Bill, I see you&#39;ve had most of your questions answered already, but I<br>still don&#39;t quite get the need for injecting your own JGroups<br>Channel, perhaps you could help clarify this for me?<br><br>Cheers,
<br>Manik<br><br>On 12 Apr 2007, at 20:51, Bill Middleton wrote:<br><br>&gt; I&#39;ve opened a jira feature request for this now.<br>&gt;<br>&gt; <a href="http://jira.jboss.com/jira/browse/JBCACHE-1023">http://jira.jboss.com/jira/browse/JBCACHE-1023
</a>&nbsp;&nbsp;&lt;&lt;&lt; Good number<br>&gt;<br>&gt; Thanks again!<br>&gt;<br>&gt; Bill<br>&gt;<br>&gt; On 4/12/07, Brian Stansberry &lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt; wrote:<br>
&gt; Thanks much for this, Bill.&nbsp;&nbsp;Sorry for the slow reply.&nbsp;&nbsp;I&#39;m going to<br>&gt; wait and let Manik Surtani comment on this, as I know he&#39;s thought<br>&gt; a lot<br>&gt; more than I have about how he wants the factories and the CacheImpl
<br>&gt; constructor to work.<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; jbosscache-dev mailing list<br>&gt; <a href="mailto:jbosscache-dev@lists.jboss.org">jbosscache-dev@lists.jboss.org
</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/jbosscache-dev">https://lists.jboss.org/mailman/listinfo/jbosscache-dev</a><br><br>--<br>Manik Surtani<br><br>Lead, JBoss Cache<br>JBoss, a division of Red Hat
<br><br>Email: <a href="mailto:manik@jboss.org">manik@jboss.org</a><br>Telephone: +44 7786 702 706<br>MSN: <a href="mailto:manik@surtani.org">manik@surtani.org</a><br>Yahoo/AIM/Skype: maniksurtani<br><br><br></blockquote>
</div><br>