compare performance with EJB2.x and Spring2.x

Hi i am planning to migrate my application from EJB2.x to Spring2.x, i am using weblogic as an Application server. what about the performance when compared to EJB nd Spring2.x?kasim
[209 byte] By [kasima] at [2007-11-27 6:33:18]
# 1
impossible to say. And kinda exercise pointless too, Spring isn't a 1:1 replacement for EJB.
jwentinga at 2007-7-12 17:59:08 > top of Java-index,Java Essentials,Java Programming...
# 2
> impossible to say. And kinda exercise pointless too,> Spring isn't a 1:1 replacement for EJB.why it is impossible? since EJB uses application container, which in tern calls many steps inside, i hope surely performance will be less when compared to Spring.
kasima at 2007-7-12 17:59:08 > top of Java-index,Java Essentials,Java Programming...
# 3

> > impossible to say. And kinda exercise pointless

> too,

> > Spring isn't a 1:1 replacement for EJB.

>

> why it is impossible? since EJB uses application

> container, which in tern calls many steps inside, i

> hope surely performance will be less when compared to

> Spring.

Forget it. This sounds like classic premature performance worries. The question cannot be answered, because there is no definitive "Spring is quicker than Weblogic" to be said. It depends wholly on your own app. Do some testing. But in all honesty, in an enterprise app, with HTTP traffic going all over the place, and browsers drawing things, users sitting around playing with buttons, databases being accessed and all other manner of things, a few extra method calls inside a container is small potatoes in comparison. Guessing at the performance isn't what you should be looking at. Getting a working application written is.

Not to mention, of course, that those extra method calls may well be optimized away by the JVM anyway. Spring isn't stingy with it's indirection, either

georgemca at 2007-7-12 17:59:08 > top of Java-index,Java Essentials,Java Programming...
# 4

> > impossible to say. And kinda exercise pointless

> too,

> > Spring isn't a 1:1 replacement for EJB.

>

> why it is impossible? since EJB uses application

> container, which in tern calls many steps inside, i

> hope surely performance will be less when compared to

> Spring.

hardly. Spring does a lot of stuff as well, stuff that also costs time.

And if you program your Spring services poorly when the EJBs were well written...

Of course in reality you're likely going to be combining EJB and Spring in a single application.

jwentinga at 2007-7-12 17:59:08 > top of Java-index,Java Essentials,Java Programming...