-
1. Re: Is it possible to implement custom command in infinispan 5?
pmuir Jul 5, 2011 7:40 AM (in response to gdanov)I don't think much has changed in the architecture of commands. Can you explain what the problem was? Did you create a JIRA to ask for the architecture to be fixed?
-
2. Re: Is it possible to implement custom command in infinispan 5?
sannegrinovero Jul 5, 2011 10:22 AM (in response to gdanov)Yes it's possible, it's now much easier than with Infinispan 4.
have a look into https://github.com/infinispan/infinispan-sample-module, this was an example created by manik to show how to plug in your custom commands.
-
3. Re: Is it possible to implement custom command in infinispan 5?
sannegrinovero Jul 5, 2011 10:23 AM (in response to pmuir)Pete, since you missed this I'll assume that there's no mention of this feature in the documentation?
-
4. Re: Is it possible to implement custom command in infinispan 5?
pmuir Jul 5, 2011 1:31 PM (in response to sannegrinovero)Yes, I think this is missing from the docs. I've added Missing documentation for Infinispan to track missing docs :-)
-
5. Re: Is it possible to implement custom command in infinispan 5?
gdanov Jul 5, 2011 7:07 PM (in response to sannegrinovero)Thanks, this sample module makes it clear
-
6. Re: Is it possible to implement custom command in infinispan 5?
gdanov Jul 6, 2011 12:42 PM (in response to gdanov)I have small problem when running the test - I get
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
when I execute the test from whithin eclipse. What is the correct way to configure infinispan test logging?
-
7. Re: Is it possible to implement custom command in infinispan 5?
galder.zamarreno Aug 12, 2011 12:07 PM (in response to gdanov)You need to pass a log4j configuration, i.e. -Dlog4j.configuration=file:/path/to/log4j-infinispan.xml
You can find a log4j sample file in the distribution or our source code
-
8. Re: Is it possible to implement custom command in infinispan 5?
mircea.markus Aug 31, 2011 1:13 PM (in response to galder.zamarreno)I would like to subclass some of the org.infinispan.command.* classes and implement my command in the style of the coherence entry processors.
I don't know you use case, but I think you should first consider using Infinispan's distributed executors as they provide similar functionality: http://infinispan.blogspot.com/2011/01/introducing-distributed-execution-and.html
-
9. Re: Is it possible to implement custom command in infinispan 5?
gdanov Aug 31, 2011 2:13 PM (in response to mircea.markus)there is huge difference between distributed callable and the commands when used as EntryProcessors (using Coherence parlance)
I am asking for a reason for that and as you see above the question was already answered
-
10. Re: Is it possible to implement custom command in infinispan 5?
johan_andries Sep 2, 2011 9:02 AM (in response to gdanov)What is this difference between an EntryProcessor (Coherence) and using a DistributedCallable (Infinispan)? Is it not allowed to call the put method on the org.infinispan.Cache<K,V> interface implementation that is injected through the setEnvironment method of DistributedCallable? I just did a small test and that seems to work.