Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB or Struts

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

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.

Reg,
Chetan
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic