-
1. Re: Hooks on TEIID for external integration
rareddy Dec 16, 2013 9:33 AM (in response to gioppoluca)1 of 1 people found this helpfulLuca,
- For query, the best I can think of is write extension of log appender for COMMAND_LOG, this context gets called for different events with query. Since this is nothing but extension of Log4J appender, you can forward that message to whatever you want to do.
- For VDB, little more involved right now you need to add VDBLifeCycleListener during that start of the engine. I suppose we could add another log context for this to extension purposes.
Ramesh..
-
2. Re: Hooks on TEIID for external integration
gioppoluca Dec 18, 2013 6:12 AM (in response to rareddy)How can I register the listener at the start?
I should develop my class that extend from the one you mentioned and than deploy on JBoss and than ...
For the log context ... could be an easier approach
-
3. Re: Hooks on TEIID for external integration
rareddy Dec 18, 2013 8:54 AM (in response to gioppoluca)Yes, extend the VDBLifeCycleListener interface and you register it with VDBRepository. If you are writing a service, VDBrepository can be injected as service into your if you define it as dependency. Or you can add it in DQPCore class in "start" method. There are several examples in code of this, take a look.
I agree, log context is much more simpler and non-invasive and works without you re-compiling the whole Teiid code. Log a JIRA, we will provide hook in 8.7, or you can write patch, you still have to above or use of the already setup paths and submit it. I know somebody else also requested this before, this should be good enhancement.
Thanks
Ramesh..