This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Java 9 modularity vs refactor existing apps

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whats the best aproach to refactor existing apps to get advantage of Java 9 modularity?
 
Marshal
Posts: 74651
335
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would you need to refactor apps? Can you get away with simply altering the imports to be modular? I don't know.
 
Paulo Cesar Dias Lima
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ritchie. I mean Java EE Server side apps.

How to apply new features like common logging system, light-weight JSON API, HTTP 2 Client support  for Java EE apps. Will be available only to Java EE 9?

Thanks.
 
Campbell Ritchie
Marshal
Posts: 74651
335
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't know. Kishori is answering questions, so I expect he will know more.
 
Saloon Keeper
Posts: 7227
169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can generally use newer SE features on older EE versions; I see no reason why that should be different with Java SE 9. There isn't much to "applying" new features - you would just use them where it makes sense. (That implies not rushing out to use any and all new features, but that has always been true.)

As to the new module stuff, it may well be that it doesn't make sense for your apps. Note that a criticism of the former proposed implementation was that it makes sense for the JRE itself, but not so much for application code. So proceed with caution. If so far you haven't seen a need to check out OSGi, maybe you don't need it (although, to be fair, both approaches do not cover exactly the same ground, but they do aim to solve similar problems).
 
reply
    Bookmark Topic Watch Topic
  • New Topic