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.
posted 10 years ago
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