• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Black Board Architecture In Java

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone
I need to make a black board kind of architecture in java which interacts with 3 modules in my system.Specifically i have addEmployee module,deleteEmployee module,and viewEmployee module.These three modules should write their respective objects(ie output) to a common place(black board) and send messages/notify to the remaining two modules that something is written in the black board.Then the other two modules can take the relevant information from the object.Can someone give a rough idea on how to proceed for the same.

Thanks
Ajay
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your modules are three separate applications:
You can use JMS, Blaze-DS etc.

If your modules are just a set of java classes that need to be notified, you can use wait/notify mechanism in java.

It really depends on what you mean by a module.
You could even poll a common static class OR database table for changes.
 
Ajay Singh
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply,atleast i have something to start with now
 
Ajay Singh
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

By modules i mean a separate independent application only.but talking about JMS,isn't it related to server programming stuff,what i am looking is
another application(blackboard,some kind of centralized class) .

Assume that we have three separate modules which work on the same input(say a paragraph of text). These modules perform mutually exclusive functionality, but the output of one module processing the input, may be required to be handled by the other two modules. In this scenario, a blackboard architecture would be appropriate to show to all the modules the subsequent output of a single module, and if one of the other modules deems it relevant to process this particular output, it should retrieve the output from the blackboard. I am clueless as to how to implement this architecture in Java.Ideas welcome

Thanks in advance
Ajay
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The three different applications can exchange information over SOCKETS.

Well JMS is a simply an application to which you can publish messages, and anyone subscribed to it will receive messages from it. It can run locally on a desktop OR it can be running on server side.

Your design/architecture is largely dependent on whether yours is a web-application or a desktop application.
 
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic