-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: triggers / Event Listeners / Interceptors / ??
PostPosted: Thu Oct 15, 2009 8:08 pm 
Newbie

Joined: Thu Aug 06, 2009 5:41 pm
Posts: 2
I have a Web App (WAR1) that writes the database. I have another (WAR2) that reads the database and
distributes the data. The only contact the two currently have is the db. Both use Hibernate.

What are my options for WAR2 being notified of changes written by WAR1, or ideally, by any mechanism?
Sorry, but I don't have the DB background, I've jumped in with Hibernate. I understand that events
that originate in Hibernate would not notify another DB user. Is there a notification mechanism all the
way from the DB?

I've read about
  • Interceptors -- These would have to live in WAR1 and be attached to the writer's sessions, yes?
  • Event Listeners -- I think these originate in Hibernate and would have to be in WAR1, too.
  • Triggers -- These sound like DB level concepts, but I haven't seen any examples of how to
    create them or use them to notify db watchers. I don't want to write code that "runs in the db",
    so unless notification has been encapsulated by hibernate...

Have I missed anything?
Should I just use Interceptors or Event Listeners in WAR1 and figure out the comms myself?

THANKS!
dbnb


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.