Current Position:Home > Separating business logic from presentation

Separating business logic from presentation

Update:10-11Source: network consolidation
I'm not sure if this is even the right forum for my question..but here it goes:
I have a device that is throwing out data into some kind of a storage device/server. Now, I have an application that reads the data from that storage and charts it. Let's say the frequency is 10 points a second.
Some of my questions below may seem strange, because i don't really understand the concepts and technologies involved.
1. What kind of storage device/server could i be looking at. What kind of server...J2EE App Server, web server?
2. How can my application be automatically notified when the server gets new data? How will that new data be passed on to my client app?
3. Let's say I have 10 different instances of the same application running on 10 different machines. Since I wouldn't want each instance to request for new data from the server, i would like the server to broadcast any new data to all the client apps that are attached to it. How can this be done?
4. Let's say I need to process the data in some form before it gets displayed on the charts. How can this processing be done on the server side itself before being presented to the client app? Basically, how can the logic be separated from the presentation?
5. If the chart is really a Swing component, but needs to be displayed in a Win32 environment (perhaps MFC dialog box or frame), how can that be done? Does this scenario change how I would address the above questions?
I really don't even know what technologies to look into to answer the above questions. Any pointers will be appreciated. I just want to start learning about how the above can be accomplished.

The Best Answer

Here goes the answers to your question. (according to my knowledge)
1. Deciding a server is depends on your design of the application. According to point 3, you are better to use JMS with publish and subscribe model. In this case you have to choose a JMS server that supports your needs
2. Again it is depends on your Design, one way is to put a shared memory for data and write a thread that reads from the shared memory or use package or use JMS etc.
3. Create one JMS source and all other will be JMS destinations.
4. You can use EJBs or Java classes based on your requirements and design to process the data.
5. Using AWT or Swing as a presentatin layer is good. But you desperately want to display it using Win 32 objects, then why dont to go for Microsoft technologies??
  • Separating business logic from presentation Update:10-11

    Hi, I'm not sure if this is even the right forum for my question..but here it goes: I have a device that is throwing out data into some kind of a storage device/server. Now, I have an application that reads the data from that storage and charts it. L

  • Separating business Tier from presentation tier your opinion welcom Update:11-30

    Hi' I'va a business object which data members are stored in DB. The question is while I'm creating new object should I return exception to the presentation tier if object doesn't exist in DB(it's data members) or should I initialize object with empty

  • Separating presentation from business logic. Update:11-30

    I recently wrote an article on how to separate JSP presentation from the business logic without a complicated framework. I haven't seen this exact approach taken before, but believe it works fairly well for most simpl

  • Business logic in Database layer or in Middle layer. Update:11-30

    I am converting my form 6i client server application to .net 3 tier web architecture application using oracle 10g database. My application is a very data centric, millions of records calculations happen in many processes. I have a problem while prese

  • Data dinding to non JFX objects - bind to business logic Update:11-30

    Hi, I want to seperate my underlying model clearly from JavaFX. This obviously means, that my model is plain Java. So I tried to bind the selected-value of a checkbox to a boolean value of a field of one of my Java classes. Unfortunately this does no

  • Design ?:  how much business logic in JSP? Update:11-30

    Hello everyone -- I can't seem to make up my mind and my collegues aren't helping, so maybe a few of you could offer your opinions. I have a simple JSP that is just a web interface to a database and right now I have the business logic (an entire clas

  • Future support for using PL/SQL core business logic with ADF BC Update:10-11

    We want to migrate our large Forms client/server (6i) application to ADF, possibly using a migration tool like Ciphersoft Exodus. One scenario could be to use ADF BC and ADF-Faces or a different JSF-Implementation for presentation and business layer

  • Urgent: how to really seperate business logic class from data access class Update:11-30

    Hello, I've this problem here on my hand and i really need help urgently. so please allow me to thank anyone who replies to this thread =) Before i go any futhur, let me present a scenario. this will help make my question clearer. "A user choose to v

  • Problem in Business Logic Callable Object execution Update:11-30

    Hi All, We are working on a workflow scenario where 2 approvals are present. Second approval is optional. Second approval is required or not is decided by a business logic callable object. This callable object is assigned (user role0 to initiator. Is

  • ADF11g: business logic in ADF BC or PLSQL? Update:11-30

    Hi All, For a new development in ADF 11g , where we should put our business logic: In ADF BC or in PLSQL? What if we write all the bussiness logic in plsql? Because if tomorrow ADF goes(which I know is not ging to happen soon), we can expose pl/sql a