• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

notification pattern

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to design an appllication that using dynamic notification to clients upon data store updates (i.e. background threads a,b & c update an event database, and then another ejb notifies gui Z that updates have occurred and either provides the updates or indicates that updates have occurred. Gui Z (could be stand alone java app or applet) then calls an ejb to retrieve the updates for display). The general purpose is to eliminate continually polling the database for new updates.

Is there a design pattern for client registration, update notification, etc for this. I had envisioned using message ejbs for this.
 
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the Observer pattern.
 
Paul Celona
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. Is there an example implementation using jms somewhere?
 
Ranch Hand
Posts: 689
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is there an example implementation using jms somewhere?


There are plenty of there. Use google.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JMS has a publish-subscribe model that is made for just this. The Sun JMS Tutorial should be a good starting point. Gregor Hohpe has a great collection of messaging patterns.
 
Paul Celona
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looking on the net I haven't found a design pattern that pulls both JMS publish/suscribe and notification/registration. I've seen the later for ejbs, but not incorporating JMS. Short of buying the eai patterns book, is there another resource out there?
 
Happily living in the valley of the dried frogs with a few tiny ads.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic