This probably goes without saying, but in addition to being UI agnostic,
your business logic should also be datastore agnostic.  To be truly
abstract, it should be as easy to move your backend from RDBMS to LDAP or
XML as it is to move the UI from Web to GUI to Console.


Ian



                                                                                       
                                                
                      "Turansky, Mark"                                                 
                                                
                      <[EMAIL PROTECTED]        To:       "Struts Users Mailing List" 
<[EMAIL PROTECTED]>                  
                      rm.com>                  cc:                                     
                                                
                                               Subject:  RE: designing simple 
scheduler                                                
                      12/08/2003 11:05                                                 
                                                
                      AM                                                               
                                                
                      Please respond to                                                
                                                
                      "Struts Users                                                    
                                                
                      Mailing List"                                                    
                                                
                                                                                       
                                                
                                                                                       
                                                




"Online is just the icing."

Right!  The business logic of the application should be UI agnostic.  The
logic shouldn't know if it was invoked from a console application, a Swing
gui app, or a web (Struts!) application.  The business logic is (or should
be) the same.


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
Sent: Monday, December 08, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


No, no that is not what we are saying.

Just call the beans from your UI. In this case your UI is console.
Same bean that you allready tested. Struts is the fastest way to develop
that I know (15 years of IT for me)

So your console app check the JavaMail and saves it or send it from db.
Same beans and DB struts uses. So any mail shows up online.
Batch/async is bread and butter of DP. Online is just the icing.
.V


Voinea, Marina wrote:
> yes, calling APP layer API (beans) from the UI is OK.
>  I was thinking if it is possible the other way around : to somehow
inform
> the UI that soemthing happened on the backend and it has to display a
> message accordingly. (kind of polling from UI to back end). The APP layer
> bean triggering an event in UI application. Coud this be done?
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to