[infinispan-issues] [JBoss JIRA] Commented: (ISPN-509) Plug listeners via XML
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Wed Sep 14 08:48:26 EDT 2011
[ https://issues.jboss.org/browse/ISPN-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628373#comment-12628373 ]
Galder Zamarreño commented on ISPN-509:
---------------------------------------
Right, for EDG deployments this would be hard to do, but other workarounds might work for them instead, such as module lifecycle callbacks, which allows code to be executed on startup. This could be used to plug listeners too without having to rely on XML plugged listeners. Besides, this gives you a more flexible solution cos you can do things to the listener before plugin it, including providing non-empty constructors and hence immutable listeners.
This opens up a bigger question, which is how EDG is plugged with user provided code. I suppose it'd have to be added as an AS7 module or something along the lines? Remember that such code would need to be available on startup so that cachemanager+caches can be started, and so don't think this can go into a WAR deployment or similar.
> Plug listeners via XML
> ----------------------
>
> Key: ISPN-509
> URL: https://issues.jboss.org/browse/ISPN-509
> Project: Infinispan
> Issue Type: Feature Request
> Components: Cache Server
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Labels: hotrod
> Fix For: 5.1.0.BETA1, 5.1.0.FINAL
>
>
> This would allow Hot Rod servers to be plugged with listeners in an easier way (otherwise you'd have to think of passing some kind of command line parameters with listeners which is not right).
> Alternatively, if someone wanted to hook listeners to Hot Rod, they'd to write some code to programatically start a Hot Rod server and associate the listener.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list