jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Need your suggestions to develop workflow based (web)application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need your suggestions to develop workflow based (web)application." Watch "Need your suggestions to develop workflow based (web)application." New topic

Need your suggestions to develop workflow based (web)application.

Suresh Gopi
Ranch Hand

Joined: Mar 08, 2007
Posts: 49
Our current application is a large monolithic web application that allows user to perform three tasks so we have three modules ( application flow is always same task1 -> task2 -> task3)

Our requirement is to develop a application with interchangable tasks. i.e Order of tasks in the flow should be
based on some input parameters.

Each module should be a separate web component (war) so that it can be reused in other application.

I think i need to build a EAR with multiple WAR files.

My doubt is where i should keep the code (logic) that triggers the correct module (i.e WAR) based on the input parameter.(I receive the input parameters through HTTP GET request.)

Please clarify me.
(If you come across this kind of requirement please share your best practices also.)

Regards<br />Suresh
Evgeniy Bulanov

Joined: Dec 19, 2005
Posts: 23
Good time of the day Suresh Gopi,

I am not clearly understand what are you going to do. Do U really need 3 web (war) application to solve your task??? What for??? Look at http://java.sun.com/products/servlet/Filters.html, might it will be helpful 4U.

Computers are like air conditioners - They stop working properly when you open Windows
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please use real words when posting to the forums. Abbreviations such as "U" in place of "you" and "4U" in place of "for you" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

JavaRanch sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Suresh Gopi
Ranch Hand

Joined: Mar 08, 2007
Posts: 49
Thanks Jeak for your reply.

The reason i thought of going for a separate war file for each task is,

1.Each task(module) is fairly big enough (approx has 10 JSP).

2.And each task is a common task (in our other apps) so i thought if i develop it as a separate component (war) i can use it in other applications easily.( Just to reuse the module)

Example scenario:

Say I have four modules,

Login Module (A)
Registration module to avail discount on products. (B)
Product Survey (C)
Product locator. (D)

In one flow i'll allow the user to login, register, enquire abt his preference (survey) and find the shop selling products.

And in other flow i want to allow the user the locate the shop first and then allow user to login and register.
(interchange the modules)

The above scenario might sound like a typical one but i want to reuse the individual module also in other apps.

If separate war is not a best solution for this scenario please suggest me any other solution.
I agree. Here's the link: http://aspose.com/file-tools
subject: Need your suggestions to develop workflow based (web)application.
jQuery in Action, 3rd edition