• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to split Struts Application into presentation layer and Application Layer

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a struts Application. I want to deploy Presentation Layer on one machine and Application Layer on other machine.

How to split struts application into 2 layers.

Please help me on this approach.

IF any one having documents on the same,Please provide me.

Thanks all in advance,
Vijay
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you elaborate little more about what "consist" of presentation layer and application layer?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most Struts applications are already split into presentation and application layers; that's one of the goals of the framework.

I'm not sure how appropriate it would be to attempt this across machines, though--what is your ultimate goal? If it's performance you'd be better off using any of several load-sharing mechanisms that already exist.
 
vijay mahendra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually , my struts application Need to deploy in 2 different machines.
Presentation layer and Application Layer in different servers.

Servlet Engine should be in some other machine .Only JSPs in one machine.
How to split and how to make it work ?

Please help me in this.

Regards,
Mahindra
 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets and JSPs together are considered to be presentation layer components.... so treating servlets as application [i suppose what you were intending was business] components is incorrect in the first place.

Now if you have both your servlets and JSPs in one machine, [inside the web/app container ofcourse], you can have your business components in any other system [hosted as webservices or EJBs] and access them via SOAP [for webservices] or RMI/IIOP [for EJBs].
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*Why* are you trying to break up your application this way?

There are other mechanisms (load-balancing, for example) that can do the same thing. Moving to a SOA is harder if the application isn't already designed that way.
 
reply
    Bookmark Topic Watch Topic
  • New Topic