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.  [ 3 posts ] 
Author Message
 Post subject: Change Notifications and Updates
PostPosted: Wed Jun 04, 2008 9:52 am 
Newbie

Joined: Wed Jun 04, 2008 9:25 am
Posts: 3
Scenario:

We are building a web application which uses NHibernate to persist data to an Oracle database. Changes in the database need to be reflected by the web application. Our application is not the only one making changes to the database.


Questions:

Is it possible to take advantage of Oracle database change notification in an NHibernate friendly way (this is just a potential solution and not a hard requirement)? If it is not possible, how is this scenario usually addressed?


Thank you,
Chris


Top
 Profile  
 
 Post subject: Clarification
PostPosted: Fri Jun 06, 2008 11:09 am 
Newbie

Joined: Wed Jun 04, 2008 9:25 am
Posts: 3
Perhaps I should clarify my original post.

Ignore the particular type of database that we are using (after all, this is partially what everyone is after).

How do I update an interface (ignore the fact that it is web-based, if you'd like) with changes made in the database? I don't believe that everyone polls for changes.

Thank you for any insight,
Chris


Top
 Profile  
 
 Post subject: A hack
PostPosted: Tue Jun 10, 2008 10:27 am 
Newbie

Joined: Wed Jun 04, 2008 9:25 am
Posts: 3
So we'll assume that there's no "nice" solution.

One possible solution to this problem might include capturing generated SQL and request update notifications for those statements (with ODP.NET, one can register a dependency on a command, and an event handler gets called when any of the associated tables change).

Can I capture SQL with an interceptor and OnPrepareStatement? Can I do this in the current version? Also, can the SQL string parameter to OnPrepareStatement be executed as is (i.e., could I copy, paste, and execute that string in sqlplus)?

Thank you for your time,
Chris


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

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.