[infinispan-dev] Removing Infinispan dependency on the Hibernate-Infinispan module in 4.x

Dan Berindei dan.berindei at gmail.com
Thu Feb 9 11:20:46 EST 2012


On Thu, Feb 9, 2012 at 4:09 PM, Bela Ban <bban at redhat.com> wrote:
>
>
> On 2/9/12 3:01 PM, Dan Berindei wrote:
>> On Thu, Feb 9, 2012 at 2:45 PM, Manik Surtani<manik at jboss.org>  wrote:
>>>
>>> On 9 Feb 2012, at 09:53, Dan Berindei wrote:
>>>
>>> The JGroups channel you get from JGroupsTransport.getChannel() can be
>>> used only by Infinispan.
>>>
>>>
>>> Why?  If we changed our CommandAwareRpcDispatcher to ignore messages that
>>> contain a certain header (say, INFINISPAN_IGNORE), then that channel can be
>>> reused as long as the header is used on all messages.
>>>
>>
>> But how would you install the handler on the receiving end? You'd
>> still need a mechanism to register the Hibernate handler with our
>> CommandAwareRpcDispatcher...
>>
>> I think it's simpler the other way around: create the channel outside
>> Infinispan, register your own receiver, and only pass to Infinispan
>> the messages that don't contain a certain header - kind of what the
>> muxing channel in AS7 does.
>
> Yes, this is already done in the MuxUpHandler written by Paul. If we can
> grab the JChannel, we can always insert ourselves into the Muxer, and
> thus invoke RPCs
>

Cool, I thought it would be harder to get to the muxer from the Infinispan side.
I still think it would be a bit cleaner to work with the JGroups
subsystem directly, though.

Dan



More information about the infinispan-dev mailing list