views:

271

answers:

2

I am facing the decision to abandon Java EE 5 (JEE) container to use web container instead (with Spring). According to Interface21 Spring Pitchfork allows elements of the JEE programming model to be used in Spring. Thus, I get a subset of JEE annotations inside of Spring container. Since I prefer to maintain compatibility with JEE this looks as attractive option to me. What is your experience with Pitchfork and what did you accomplish by using it?

+1  A: 

No experience with Pitchfork, but lots with Spring. Foregoing EJBs hasn't been a problem. POJOs have been more than adequate.

Two other alternatives to consider:

You can use OpenEJB with Tomcat if you need EJBs but don't want to buy a Java EE app server.

You can try Spring dm Server with OSGi. Eat the shell and the egg - go all the way.

duffymo
We ended up with OpenEJB running on Tomcat. Due to large J2EE legacy code base switching to Spring seemed less feasible. But using POJOs and JPA makes things very similar with Spring anyway. OpenEJB infrastructure is more than adequate - with Spring we would have to use more 3d party products.
grigory
I'm glad this worked out for you, grigory. Sounds like some good work on your part.
duffymo
+1  A: 

I use pitchfork for unit testing EJB3 and JPA components outside of the container and it works really well. I can wire up everything I need including a transaction manager, a 2nd level caching provider, etc.

jnorris