File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts and SOA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and SOA" Watch "Struts and SOA" New topic
Author

Struts and SOA

M Mehta
Ranch Hand

Joined: Aug 03, 2006
Posts: 92
Hi,

I have an application which is build using struts framework. I have to refactor that application according to the SOA( service oriented architeture) so that there is loose coupling among different layers.
I am lost and dont know how should I go about it and whats exaclty need to be done. Please help me.

Thanks,
Mehta
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456

so that there is loose coupling among different layers


you gave the point:

analyze you application, identify possible layers and define what "loose coupling" means for them

with that knowledge in mind you should be able to develop an idea of how your application should look like...
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
You ask a pretty big question. "Service Oriented Architecture" is a term with a lot of definitions. If you are going the approach where "everything is a service" then I would envision that you would have to refactor your business layer to have an open service type interface (web services?). Your Struts actions classes would then never make direct database calls or EJB calls but would instead interface with your backend via its interface.

In my opinion, there would be too much overhead if every page had to make several web service type calls just to show a web page with some data.

Based on your post I would say that you have some serious research in front of you. SOA is much more than just "loose coupling among different layers".

- Brent
 
 
subject: Struts and SOA