A
Arne Vajhøj
Apparently the decision to move to Tomcat was simply one of
standardization. I think perhaps the decision was made a while back.
At any rate it was made without me for reasons I do not know. I was
told though, when I mentioned being worried that such limits could
increase development effort, that I can use whatever libraries or
extensions I need. This includes things like OpenEJB etc...
After learning more about these buzzwords and what they actually
implement though I'm starting to wonder what is left for EJB.
Session and message driven beans are useful for the exact same
thing that they have always been useful for.
Note that you may not need them. Many solutions lives just
fine with a web container only.
I can
replace standard Java EE JPA with Hibernate
But why would you tie your app to a specific lib instead
of using a standard?
I can pull in JSF with either the standard implementation or MyFaces
(and tobago or whatever looks pretty interesting).
JSF in Tomcat works great.
Unfortunately, if I use OpenEJB I'm stuck with an older Tomcat as it
doesn't work with 7.0 yet.
You should do:
requirements => technologies => infrastructure
not the other way around.
Start by finding out whether you need EJB or not.
Then start looking at how you can get it.
What is it that EJB offers me that I don't get with these other
standard technologies? I thought it was things like SessionBeans and
such, but if I use the CDI and JSF bits it seems like I get a lot of
the same behavior because I've got @ManagedBean or @Named. I'm
finding this confusing.
I would consider:
- session beans and CDI orthogonal
- session beans and managed beans different
Arne