<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Pushing to dev ml ...<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Manik Surtani &lt;<a href="mailto:msurtani@redhat.com">msurtani@redhat.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">April 28, 2010 4:44:11 PM GMT+02:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Ales Justin &lt;<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Cc: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Bela Ban &lt;<a href="mailto:bban@redhat.com">bban@redhat.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: infinispan + mc + vfs</b><br></span></div><br><div>All sounds very good. &nbsp;We should discuss this on infinispan-dev BTW... <br><br>On 28 Apr 2010, at 15:14, Ales Justin wrote:<br><br><blockquote type="cite"><blockquote type="cite">It looks pretty good. &nbsp;Perhaps you should create a wiki page about this on Infinispan's wiki - I'm sure others will be interested.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I still need to play around a bit.<br></blockquote><blockquote type="cite">Perhaps wiki really is the best way to push this fwd, along with mentioning this on the-core and/or our weekly AS confcall.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Also, what else would we need to create an infinispan-mc module? &nbsp;Essentially this would be an adapter that would allow Infinispan lifecycle and config parsing to hook in to the MC, so that we could build a JBoss AS "data grid" profile such that:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">${JBOSS_HOME}/servers/datagrid/lib/&lt;infinispan jars&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">${JBOSS_HOME}/servers/datagrid/conf/infinispan.xml<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">running:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">$ run.sh -c datagrid <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">would start a standalone Infinispan node with:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">* MC<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">* JNDI<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">* JMX<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">* Infinispan (based on the config in infinispan.xml)<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">With my prototype you can already do all of this. ;-)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">All you're missing is infinispan.deployers dir/module in AS' deployers directory.<br></blockquote><blockquote type="cite">And then you would simply move conf/infinispan.xml into datagrid/deploy/ dir.<br></blockquote><blockquote type="cite">Voila! ;-)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I can setup this once you/we get confirmation from the AS team that this is the right approach.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Some configs may also include HotRod/Memcached/WebSock/REST server - the latter which would then need a web container. &nbsp;Same goes for servers/datagrid-managed which would also contain a JOPR instance. &nbsp;Perhaps then what we are looking for is:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">servers/datagrid // default, p2p comms<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">servers/datagrid-server // + HotRod/Memcached/WebSock endpoints<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">servers/datagrid-REST // + REST endpoint<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">servers/datagrid-managed // + JOPR instance <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thoughts?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This looks too much fuss for simple config diff.<br></blockquote><blockquote type="cite">We can ask around on what the new ProfileService (PS) can help us here,<br></blockquote><blockquote type="cite">to make this a single config + some PS magic.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Ales<br></blockquote><blockquote type="cite"><font class="Apple-style-span" color="#144FAE"><font class="Apple-style-span" color="#006312"><br></font></font></blockquote></div></blockquote><br></div><div>On 24 Apr 2010, at 21:48, Ales Justin wrote:<br><br><blockquote type="cite">I've hacked this initial MC + VFS support:<br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/infinispan/src/main/java/org/jboss/demos/infinispan/">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/infinispan/src/main/java/org/jboss/demos/infinispan/</a><br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/infinispan/src/main/resources/META-INF/infinispan-beans.xml">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/infinispan/src/main/resources/META-INF/infinispan-beans.xml</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You can then drop in this jar:<br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Where we watch for "jboss-infinispan.xml" files:<br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/resources/META-INF/jboss-infinispan.xml">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/resources/META-INF/jboss-infinispan.xml</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And to test all of this I deploy a plain MC bean:<br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/resources/META-INF/gfs-beans.xml">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/resources/META-INF/gfs-beans.xml</a><br></blockquote><blockquote type="cite">*&nbsp;<a href="http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/java/org/jboss/demos/gfs/Test.java">http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/gfs/src/main/java/org/jboss/demos/gfs/Test.java</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This also exposes how we can transparently use GridFilesystem over VFS.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So, any feedback is welcome.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Ales<br></blockquote><blockquote type="cite"><br></blockquote></div><br></body></html>