jQuery in Action, 2nd edition*
The moose likes Performance and the fly likes EJB or Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "EJB or Struts" Watch "EJB or Struts" New topic

EJB or Struts

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636

We have to develop web based complex application that will be accessed by user over internet.

No page should take more then 10 sec to download.

We have two options

(1) JSP + Servlet + EJB
(2) JSP + Servlet + Struts

If both solutions implemented in most optimized way, which one be the fastest?

I have impression that Struts is bit slower then EJB.


My blood is tested +ve for Java.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
EJB and Struts aren't mutually exclusive - Struts is a web-frontend framework, EJB a component model for distributing your business logic between several servers. They solve totally different problems, so saying that one is faster than the other, or that you plan to use one or the other, doesn't make much sense.

Anyway, if you won't need to run your business logic on more than one server, EJBs are more likely to slow your application down than to improve performance. I'd advise to take a look at Struts, Spring and Hibernate, for example.

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
Don't get me started about those stupid light bulbs.
subject: EJB or Struts
Similar Threads
mvc 2
WAS 6.1 server supporting which version of Struts,JDK,EJB,JSP and Servlet
Books on struts
regarding books
Book on Struts and EJB, servlet