aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "EJB or Struts" Watch "EJB or Struts" New topic
Author

EJB or Struts

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
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


My blood is tested +ve for Java.
Ilja Preuss
author
Sheriff

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB or Struts