• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Basic question about versions used in an ear

Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can I have the following architecture in an ear file?

-one ejb module (ejb version 2.1)
-one ejb module (ejb version 3.0)
-one war module (jsp version 2.1, servlet version 2.5)
-one war module (jsp version 2.0, servlet version 2.4)

If so, which can communicate with which?

Thanks in advance,

author & internet detective
Posts: 40196
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not positive, but I think the EAR has to use the same version of J2EE.

Any module in the same EAR can communicate with the others. So if you able to have different versions of components, they can communicate.
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the EJB modules I don't know, but you can put in web modules responding to an earlier version of the spec because those are fully backwards compatible.
But why would you? The only thing you need to do is change a single line in the header of the web.xml for the webcomponent to bring it up to date (and maybe change the way you define your JSTL descriptor if you're using a really old version now).
    Bookmark Topic Watch Topic
  • New Topic