[infinispan-dev] draft of infinispan tutorial

Alejandro Montenegro aamonten at gmail.com
Tue Jul 7 11:40:20 EDT 2009


thanks for the feedback I will make the changes during the week.


On Tue, Jul 7, 2009 at 6:54 AM, Manik Surtani <manik at jboss.org> wrote:

>
> On 7 Jul 2009, at 10:39, Mircea Markus wrote:
>
>  Good stuff!
>>
>> Some notes:
>> re:
>> http://www.jboss.org/community/wiki/InstallingInfinispantutorialenvironment
>> - I think it would be useful for this document to link to
>> http://www.jboss.org/community/wiki/Infinispaninteractivetutorial.
>>  Users might reach it through a wiki search, and this document does not
>> make sense outside of the scope of the other one.
>>
>
> +1.
>
>  - Setting the classpath - instead of that, the users can copy
>>  sample-configurations.xml  and infinispan-config-4.0.xsd straight to  same
>> place where infinispantest.groovy was downloaded AND run the sample from
>> same directory. This way we won't have to add the files to the classpath,
>> reload/restart console etc
>>
>> re:http://www.jboss.org/community/wiki/Infinispaninteractivetutorial
>>
>> I think the example you give with regard to transaction spotted out a
>> possible bug. I've created a JIRA to check/fix that:
>> https://jira.jboss.org/jira/browse/ISPN-122
>>
>> |groovy:000> tm.begin()
>> ===> null
>> //PUTTING SOME OBJECTS INSIDE THE CACHE
>> groovy:000> localTxCache.put(key1, value1)
>> ===> null
>> //MMM SIZE DOESN'T INCREMENT
>>
>
> This is not a bug.  Size() is only an approximation (see javadoc on Cache).
>  As such, you should not use size in this tutorial.  Instead use
> containsKey() or something.
>
>
>
>> ||//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [mmarkus]BUG - size should be seen as 1
>> in the call bellow!|
>>
>> |groovy:000> localTxCache.size() ===> 0
>> //LETS TRY AGAIN
>> groovy:000> localTxCache.put(key2, value2)
>> ===> null
>> //MMM NOTHING..
>> groovy:000> localTxCache.size()|
>>
>>
>> Thanks,
>> Mircea
>> Alejandro Montenegro wrote:
>>
>>> Guys, please provide me feedback for:
>>>
>>> http://www.jboss.org/community/wiki/InstallingInfinispantutorialenvironment
>>> http://www.jboss.org/community/wiki/Infinispaninteractivetutorial
>>>
>>> Still missing the spelling check, add links to other wiki-pages,
>>> javadocs..
>>>
>>> any recommendation to make it look better on the wiki will be great, I
>>> don't know if there exist any groovy highlighting
>>>
>>>
>>> thanks
>>> --
>>> Alejandro Montenegro del Pino.
>>> Viña del Mar - Chile
>>> phone: (+56) 9-68358690
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>
>
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
>


-- 
Alejandro Montenegro del Pino.
Viña del Mar - Chile
phone: (+56) 9-68358690
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20090707/16de9d16/attachment-0001.html 


More information about the infinispan-dev mailing list