java - Service-based design on a jboss server -


i looking best option use service-paradigm in jboss server. osgi no longer supported , spi works...oddly...in jboss else there?

to give little bit of perspective, have ear file contains:

  • lib/
    • jarthatusesspi.jar
  • myejb.jar
  • mywebinterface.war
    • lib/
      • someotherdependency.jar

for myejb.jar:

  • it can see classes inside jarthatusesspi.jar
  • the spi works in, detected should be

for mywebinterface.war:

  • it can see classes inside jarthatusesspi.jar
  • the spi does not work, nothing automatically detected.

if myejb approaches spi jar first , initializes spi stuff -basically store spi results in memory in singleton- , web interface then requests instance, see same instance with spi loaded instances. sure war , parent ear file looking @ same class same classloader, same instances etc, except spi stuff not work if run in web interface first...

due fragile spi behavior , non-support osgi, i'm curious see jboss offers alternative, can't seem find any...


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -