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
- lib/
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
Post a Comment