File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

External Database Changes sending notifications to Entity Beans

 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I dont know if this feature is avaliable in EJB where by when an external database change triggers a call back method on an entity bean, notifying it about the change. Acually, as I am writing this I am quite sure there doesnt exist such a facility.

I have a database that is accessed from the server side java application and the Db can also be accessed directly ( manual CRUD) and I would like that client application to be notified of any changes. Incase of changes through the server side java application I could send out a JMS from entity bean, but if the database is changed manually I have no way of knowing.
I dont want to poll the database table for changes and I am also not that keen on triggers, but I am interested in knowing how I can achive this using triggers.

Sybase Database
Weblogic 8.1
Swing Client Application
 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are talking about entity cache invalidation then
you might want to take a look at this
 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I will have a look at it.
 
riddick plus
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use this weblogic.ejb.CachingHome class ??
 
riddick plus
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i'm using entity exclusive mode how can in do that ?
 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didnt have much time to go through that class, since the external changes to the database will be only during production problems and we can ask the users to explicitly refresh at that time.
But you never know these code standards and desing policies change like the weather.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic