Search code examples
jbossjava-ee-6

Is there any way to have a fully portable Java EE 6 deployment?


Is it possible to make a Java EE 6 application deployable on any Java EE 6 Container (like JBoss or GlassFish, etc) without using their modules / libraries?

If for example I want Hibernate or Weld then add these in my Maven pom.

In other words, is there any "vanilla" container or can JBoss or GlassFish be made "vanilla"?


Solution

  • I´m sorry... but to be honest I don´t understand your question.

    Java EE applications are in most cases deployable an all containers - as long as they are not using packages or configurations which are specific to the chosen container. Even if you add libraries in your POM and the applications are packaged as WAR or EAR this should work.

    Weld is not needed because the API is part of Java EE 6. If you want to use JPA you also don´t need hibernate.