how about in your eventlistener a simple IF clause:

  public void setProgress(int state, String name, int x, int max) {
    if (name.equals("MYTEMPTABLE")) {
      return;
    }
    ... rest of code to insert into MYTEMPTABLE
  }

On Tuesday, 29 May 2012 16:46:15 UTC+2, Lizard wrote:
>
> So I've been digging deeper into event listener, and have accomplished 
> a bit of what I wanted, in terms of getting it to respond, but now I 
> have found a fairly amusing problem. 
>
> I was told earlier that if I wanted to monitor what event listener was 
> doing, I could create a memory table. Easy enough. Unfortunately...if 
> I have an INSERT INTO MYTEMPTABLE type command in SetProgress, it 
> triggers a listener event which calls SetProgress which... well, you 
> get the idea. 
>
> So I need to create a temporary (memory) table on a DB without a 
> listener, then have the listener be aware of that DB, and create a 
> connection to it? Am I missing a much simpler way to do this? I must 
> be. This just seems like too many hoops, and I must be missing the 
> forest for the trees, to use a really tiresome cliche. 
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/h2-database/-/M1J1DqujF6YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to