[
https://issues.jboss.org/browse/TEIID-2182?page=com.atlassian.jira.plugin...
]
Ramesh Reddy resolved TEIID-2182.
---------------------------------
Resolution: Done
Added a new callback interface called "EventListener" in teiid-api project,
which can be registered on "EventDistributor". Currently this interface notifies
about VDB load/unload and ACTIVE. Other events as needed can be added to the same
interface in future if needed. Note, you can add only "inVM" listeners. However,
for users who are inclined, they can integrate with other technologies like ESB, JMX or
messaging to generate remote event if needed.
User can get access in "EventDistributor" through JNDI look up in AS7
environment and through "getEventDistrubutor" method in the embedded scenario.
Mechanism to hook up event listener into Teiid runtime
------------------------------------------------------
Key: TEIID-2182
URL:
https://issues.jboss.org/browse/TEIID-2182
Project: Teiid
Issue Type: Feature Request
Components: AdminApi, Server
Affects Versions: 8.1
Environment: Windows 7 64 bit
Reporter: Anil Allewar
Assignee: Ramesh Reddy
Fix For: 8.3
It would be to useful allow the installation of custom listeners since we don't have
a global vdb table that could have customizable triggers. This could cover for example
custom strategies for external materialization initialization.
This would also help in where an application wants to listen to when a VDB was added,
made active, destroyed so that it can handle those events as required by the application.
Please see the thread below for the context & details
https://community.jboss.org/message/756060
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira