portabililty of ear

Hello,

I started a few time the development of a J2EE application using Jonas 3.1 and then I finished the development of my ear with Jonas 4.1.

During my development process I had to build one ear for each new release of Jonas. Indeed an ear working well on Jonas 3.1 doesn't work on jonas 4.0 I had to build my ear with the new version of Jonas because of the DTD changes.

What I whish to know is:

-Must I build my ear each time a new version of Jonas is released? Or my ear should work for any version of Jonas knowing that my application is J2EE compliant and Jonas too?

Another question is about the portability of the ear on different application server.

Indeed when we look at the J2EE documentation, the deployement of any jar, war or ear can be done on any apps server but is it as easy as it is said?

As Jonas has got a jonas-ejbjar.xml file I cannot use my ear on another server apps , why?

Do I have to realise more coding to obtain a ear working on any plateform? what is the better way to obtain a generic ear like that?

Thanks in advance for any assistance

[1133 byte] By [hugogus] at [2008-1-4]
# 1

Note JOnAS is not yet J2EE certified.

You may want to use J2EE AVK (free) to check the portability of your code:

http://java.sun.com/j2ee/avk/

You usually need to rebuild you EAR file when the J2EE version changes.

Then it's up to the "vendor" to provide consistency or not in its DTDs (AVK doesn't check that).

-Alexis

am74686 at 2007-7-7 > top of java,Enterprise & Remote Computing,AVK Portability...