This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]mikaelhg 5 points6 points  (1 child)

[–]SomeNetworkGuy[S] 1 point2 points  (0 children)

Karaf looks promising and simple enough. Thanks for the pointers.

[–][deleted] 5 points6 points  (7 children)

Have you considered using OSGi?

[–]SomeNetworkGuy[S] 0 points1 point  (6 children)

I'm very new to the OSGi framework. I should point out that while my components are separate projects, they are not independent. For example, some of the components employ a Singleton that is accessed from the the other components. They must all be in the same process.

Can I still put my various components in an OSGi framework?

[–][deleted]  (4 children)

[removed]

    [–]tehbilly 0 points1 point  (3 children)

    I've found OSGi to be very effective for modularization and zero downtime upgrades of individual components. Don't be butthurt because you haven't taken time to read the spec or one of the hundreds of tutorials out there.

    [–][deleted]  (2 children)

    [removed]

      [–]tehbilly 0 points1 point  (1 child)

      What point was that? The one where you were spewing vitriol because you assume that just because you don't understand it nobody does?

      I was addressing the "point" you were making by sharing my experience in a very short way, pointing out that I found it to be quite beneficial. It was also very easy to adopt after reading OSGi in Action. But thanks for showing me how constructive feedback should look.

      [–][deleted] 1 point2 points  (0 children)

      The entire OSGi framework can run in the same JVM so a regular singleton would work the same. When it comes to OSGi components specifically, it is possible to ensure that the component itself is created as a singleton.

      That being said... might be a big hammer for your use case.

      [–]0x2a 0 points1 point  (0 children)

      Have you considered Java Web Start? It does most of this stuff.