I currently have an EJB 2.1 application that was written with the goal of vendor neutality, but is not quite there. The application is coded with XDoclet tags for a WebLogic 8.1 deployment. We are also using the WebLogic servicegen task to generate web services from session beans. My requirement is two-fold: migrate to WebLogic 9.2 and provide support for (at least) JBoss 4.0. I realize the EJB 3 support in WebLogic is not quite there yet, so I'm hesitant to refactor to that solution, even though my gut says that this may be the path of least resistance from a development perspective. We've started to look at a pure Hibernate solution thinking that may provide the multi-AS support.
I would appreciate any suggestions or lessons learned in this area.