That would be lovely.&nbsp; <br><br>Thanks Manik.<br><br>----<br>Bill<br><br><br><div><span class="gmail_quote">On 4/23/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;">Bill,<br><br>Fair comment, especially around requiring to use the channel for your<br>
own purposes.<br><br>In terms of approach though, I&#39;d rather this channel be injected via<br>the RuntimeConfig rather than being passed in through the factory as<br>this is where other services (e.g., TransactionManagers) get injected
<br>by IOC frameworks.<br><br>So what you&#39;d do is something like:<br><br>cache = DefaultCacheFactory.createCache(config, false);<br>cache.getConfiguration().getRuntimeConfiguration().setChannel<br>(myChannel);<br>cache.start
();<br><br>Does this make sense?<br><br>Cheers,<br>Manik<br><br>On 20 Apr 2007, at 17:31, Bill Middleton wrote:<br><br>&gt; Hi Manik, thanks for taking the time to look at this. To answer<br>&gt; your question, the simple&nbsp;&nbsp;reason for allowing this change is to
<br>&gt; make the cache independent of an mbean server.&nbsp;&nbsp; I would argue that<br>&gt; there are plenty of older j2se apps out there that could make use<br>&gt; of the cache, but are perhaps not ready to make the jump to a full AS.
<br>&gt;<br>&gt; But there are other reasons.<br>&gt;<br>&gt; Consider, for example, the case where a given application can<br>&gt; deploy on and obtain firewall permissions for only one tcp port.<br>&gt; If that application needs to provide jgroups functionality of both
<br>&gt; the sync and async type, then there&#39;s little choice but to<br>&gt; multiplex a single jchannel.&nbsp;&nbsp;Since I want to use JbossCache, I<br>&gt; have little choice but to grab the cache&#39;s Rpcdispatcher and send
<br>&gt; my own messages, since I cant get a jchannel out of jbosscache either.<br>&gt;<br>&gt; I guess that&#39;s both ends of the argument.&nbsp;&nbsp;Either solution would<br>&gt; work, either allow us non-AS folks to inject our own channel to the
<br>&gt; cache, or provide us a means to fetch one out.&nbsp;&nbsp;My patch, which is<br>&gt; working ok for me here, does the former.&nbsp;&nbsp;The single additional<br>&gt; method on the factory requires a complete configuration, which will
<br>&gt; hopefully discourage all but the most stubborn from trying to use it.<br>&gt;<br>&gt; But I think you&#39;ll win some new cache customers if you provide it.<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Bill Middleton
<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 4/20/07, Manik Surtani &lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt; wrote:Sorry for being<br>&gt; so late jumping in on this.<br>&gt;<br>&gt; Bill, I see you&#39;ve had most of your questions answered already, but I
<br>&gt; still don&#39;t quite get the need for injecting your own JGroups<br>&gt; Channel, perhaps you could help clarify this for me?<br>&gt;<br>&gt; Cheers,<br>&gt; Manik<br>&gt;<br>&gt; On 12 Apr 2007, at 20:51, Bill Middleton wrote:
<br>&gt;<br>&gt; &gt; I&#39;ve opened a jira feature request for this now.<br>&gt; &gt;<br>&gt; &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; &gt;<br>&gt; &gt; Thanks again!<br>&gt; &gt;<br>&gt; &gt; Bill<br>&gt; &gt;<br>&gt; &gt; On 4/12/07, Brian Stansberry &lt;<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>&gt; wrote:<br>
&gt; &gt; Thanks much for this, Bill.&nbsp;&nbsp;Sorry for the slow reply.&nbsp;&nbsp;I&#39;m going to<br>&gt; &gt; wait and let Manik Surtani comment on this, as I know he&#39;s thought<br>&gt; &gt; a lot<br>&gt; &gt; more than I have about how he wants the factories and the CacheImpl
<br>&gt; &gt; constructor to work.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; jbosscache-dev mailing list<br>&gt; &gt; <a href="mailto:jbosscache-dev@lists.jboss.org">
jbosscache-dev@lists.jboss.org</a><br>&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/jbosscache-dev">https://lists.jboss.org/mailman/listinfo/jbosscache-dev</a><br>&gt;<br>&gt; --<br>&gt; Manik Surtani<br>&gt;
<br>&gt; Lead, JBoss Cache<br>&gt; JBoss, a division of Red Hat<br>&gt;<br>&gt; Email: <a href="mailto:manik@jboss.org">manik@jboss.org</a><br>&gt; Telephone: +44 7786 702 706<br>&gt; MSN: <a href="mailto:manik@surtani.org">
manik@surtani.org</a><br>&gt; Yahoo/AIM/Skype: maniksurtani<br>&gt;<br>&gt;<br>&gt;<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>