• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Basic question about versions used in an ear

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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,

Julien.
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Julien,
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic