On Wed, Apr 1, 2020 at 12:36 PM Adrian Owen <[email protected]> wrote:

> I use custom api to get authentication Token from guacamole and use to
> connect.
>
>
>
> Guacamole writes entry to the guacamole_connection_history table when
> connection completes.
>
>
>
> I would like to put a hook in that spot to make a call out to pass a
> message to my application.
>
>
>
> The bigger question is would this work, and is it worth pursuing?
>
>
>

Well, it might work, but, there might be a couple of other better/easier
ways to do this.  First, Guacamole publishes several Events and has a
framework for EventListeners:

http://guacamole.apache.org/doc/gug/event-listeners.html

One of the available Event Listeners is the TunnelClose event:

https://github.com/apache/guacamole-client/blob/master/guacamole-ext/src/main/java/org/apache/guacamole/net/event/TunnelCloseEvent.java

Depending on what you're trying to do, you might be able to implement an
extension which listens for these events and does something based on them.

The other option would be to create a decorating extension that decorates
the JDBC modules and then overrides the necessary methods in the JDBC
connection to take whatever action you want to take when the connection
closes.

Can you provide more detail on what you're trying to do?  We might be able
to help point you in the correct direction...

-Nick

>

Reply via email to