• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wildfly see resources from external jar in different ears

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possibile to scan some directories to find all jars and add them as dependencies in ears at runtime?

I'm using wildfly 8.1.0 final.

For example we have two separated ear:

  • ear1
    ear2


  • And an external jar with some jsf managed beans, facelets, and static content (images, css, js):

  • jar1


  • Does exist any way to make all resources in jar1 to be accessible from ear1 and ear2 without put jar1 as module in ear1 or ear2?

    I don't know any other way than add jar1 as dependency in ear1 and ear2 and redeploy ear1 and ear2.
     
    author
    Posts: 194
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Answering to your first question- I'm afraid it's not possible out of the box as it would require an URLClassloader to pickup at runtime classes. You could write a new Classloader and deploy it into the application server though- but I'm not pretty sure it is going to work.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic