File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Design Pattern - without Presentation layer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Design Pattern - without Presentation layer" Watch "Design Pattern - without Presentation layer" New topic

Design Pattern - without Presentation layer

inr mohan
Ranch Hand

Joined: May 11, 2005
Posts: 61
I am aware of the MVC design pattern, but in my project we have a module in which the processing is done in the background and no UI (i.e presentation) is involved,

In that case which design pattern will suit my needs,

Please help.

Thanks in Advance.
[ July 30, 2007: Message edited by: inr mohan ]
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 434
As far as I know, MVC is not a design pattern. It's more an architecture based on the Observer pattern. For example, in Swing, the GUI get updated automatically when its model changed. The GUI is an observer of its model.

If you want other modules are notified when your bacground processing module changed, make them as obervers of it. That's the Observer pattern. Java provide APIs to make things easier, please refer to Observable/Observer in Java API.

To be or not to be. It's a question.
inr mohan
Ranch Hand

Joined: May 11, 2005
Posts: 61
Suppose If my application reads the data from the Message Queue and the data is validated by Business layer and stored in database using Data Layer. In this case No presentation Layer ot UI is involved.

What is the common pattern name we have? Please let me know.

I need it to update some info to others.

Thanks in advance.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
How bad would it be if there was no pattern? If I didn't know one that helped me design the system, I'd happily go without for a while. Maybe one will emerge as you work.

I scanned Grady Booch's Pattern Catalog for anything with "message" in it. A Message Gateway encapsulates the message listener and treats is as one of many ways to trigger a Service Activator. Be careful not to stretch too far ... if these don't help you design or explain the system, don't misuse them.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Design Patterns work on a finer scale of granularity than you seem to be thinking. An application like the one you describe could easily make use of hands full of design patterns, to solve specific design problems.

Also take a look at

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Design Pattern - without Presentation layer
It's not a secret anymore!