• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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: 41184
848
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).
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic