Hello Steinar, I haven't used Micronaut with OSGi myself, so I can't provide specific guidance on that integration. However, I believe the most challenging aspect of your project will be the React SSR requirement. You will likely need a JavaScript engine, and Truffle/GraalJS currently appears to be the only maintained option. If you are considering Micronaut primarily for SSR support, you may be able to achieve your goal without it. In theory, you could use GraalJS to run the entry-server.js file produced by an SSR build and send the output as the response for the initial HTTP request. Please note that routing and data access within the React code will likely require special attention to function correctly during server-side rendering.
Regards and good luck. João Email: [email protected] Web: www.exploitsys.com On Sat, Jun 6, 2026 at 11:08 AM Steinar Bang <[email protected]> wrote: > Does anyone here have any experience with running micronaut inside > apache karaf? > https://micronaut.io > > I am specifically looking for (and currently looking into) server side > react application javascript rendering, from a servlet started by the > OSGi HTTP Whiteboard, and am wondering where/if micronaut could fit into > that. > > But any experience anyone might have with micronaut inside apache karaf > is of interest. > > I am aware that micronaut isn't OSGi compliant and that it is written > expecting a single classloader with a flat classpath. > > I am also aware that Micronaut doesn't natively use the servlet API, but > instead has its own embedded HTTP server. But I have googled up this > thing: > > https://micronaut.io/2020/03/03/back-to-the-future-with-micronaut-servlet/ > > Thanks! > >
