That would be lovely. <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> <<a href="mailto:manik@jboss.org">manik@jboss.org</a>> 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'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'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>> Hi Manik, thanks for taking the time to look at this. To answer<br>> your question, the simple reason for allowing this change is to
<br>> make the cache independent of an mbean server. I would argue that<br>> there are plenty of older j2se apps out there that could make use<br>> 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<br>> deploy on and obtain firewall permissions for only one tcp port.<br>> If that application needs to provide jgroups functionality of both
<br>> the sync and async type, then there's little choice but to<br>> multiplex a single jchannel. Since I want to use JbossCache, I<br>> have little choice but to grab the cache's Rpcdispatcher and send
<br>> my own messages, since I cant get a jchannel out of jbosscache either.<br>><br>> I guess that's both ends of the argument. Either solution would<br>> work, either allow us non-AS folks to inject our own channel to the
<br>> cache, or provide us a means to fetch one out. My patch, which is<br>> working ok for me here, does the former. The single additional<br>> method on the factory requires a complete configuration, which will
<br>> hopefully discourage all but the most stubborn from trying to use it.<br>><br>> But I think you'll win some new cache customers if you provide it.<br>><br>> Regards,<br>><br>> Bill Middleton
<br>><br>><br>><br>><br>> On 4/20/07, Manik Surtani <<a href="mailto:manik@jboss.org">manik@jboss.org</a>> wrote:Sorry for being<br>> so late jumping in on this.<br>><br>> Bill, I see you've had most of your questions answered already, but I
<br>> still don'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>> > I've opened a jira feature request for this now.<br>> ><br>> > <a href="http://jira.jboss.com/jira/browse/JBCACHE-1023">http://jira.jboss.com/jira/browse/JBCACHE-1023</a> <<< Good number
<br>> ><br>> > Thanks again!<br>> ><br>> > Bill<br>> ><br>> > On 4/12/07, Brian Stansberry <<a href="mailto:brian.stansberry@redhat.com">brian.stansberry@redhat.com</a>> wrote:<br>
> > Thanks much for this, Bill. Sorry for the slow reply. I'm going to<br>> > wait and let Manik Surtani comment on this, as I know he's thought<br>> > a lot<br>> > more than I have about how he wants the factories and the CacheImpl
<br>> > constructor to work.<br>> ><br>> ><br>> > _______________________________________________<br>> > jbosscache-dev mailing list<br>> > <a href="mailto:jbosscache-dev@lists.jboss.org">
jbosscache-dev@lists.jboss.org</a><br>> > <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>><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>