My question is about :
I have a Java web application which generates a EAR file and currently runs on IBM Websphere 6.1 .
In its pom.xml it has WebSphere version dependency , I want to remove complete dependency and make my application as server independent.
Below is the dependency:
` <dependency>
<groupId>com.ibm.websphere</groupId>
<artifactId>j2ee</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibm.websphere</groupId>
<artifactId>web-services</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibm.websphere.jre</groupId>
<artifactId>ibmjceprovider</artifactId>
<version>6.0.2</version>
<scope>provided</scope>
</dependency>`
So that in future if I want to migrate to a different Application server from WebSphere , like to Tomcat or Jboss , there is no dependency in the code.
Is it possible ? If yes then what is the best approach to do it.
Thank you in advance.