Hi there,
I want to get your opinion on this. I have a web application that runs
on Tomcat. This has been running smoothly for a number of years. I
would like to migrate this web application to Java EE platform, to be
hosted on an app server like Oracle App Server or any other products.
If you have done this before, can you please share your migration
experiences, like what to look out for, migraton steps, information
links, etc. Any help would be appreciated. Thanks.
From the pure functionality viewpoint, an obvious early step is to make sure
that app server X supports the Java language version and the J2EE API
versions you are using.
Be prepared to play with libraries. If you are using Apache XML libraries in
your Tomcat webapp, you may want to stick with them, for example. I brought
this one up because evidently quite a few people have had problems in this
area with OAS. See
http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
for OAS; whether or not this is applicable will depend on OC4J version.
There may be similar issues with any server -> other server migration. In a
perfect world libraries written to certain APIs are cleanly swappable - in
the real world they are not. Part of the reason is partial support or
differing interpretations of the APIs.
Other things to look out for, particularly with an older application. One,
use of server-specific APIs to make up for stuff that J2EE didn't do at the
time, or wasn't standardized. Two, non-portable code (things like embedded
references). Non-portable code may come about because of use of vendor APIs
or how you use J2EE APIs (like JDBC).
Look at what you needed to configure on Tomcat - usernames/passwords/roles
etc, JNDI, JDBC, you name it - and figure out how that'll be done on the
target server.
Last but not least, other people have done it before. Googling will dredge
up posts regarding specific issues you run into, and the odds are also
pretty good that there will be a migration guide or guides (sometimes as
specific as Server A to Server B).
Arne and Lew are quite correct insofar as this may be fairly painless. But I
wouldn't go telling your boss that you'll be done with the migration in a
couple of hours either.
AHS