Hi,

In Streamflow we are looking into doing virtual hosting of the app.
Basically, we would deploy the Streamflow WAR once, and then use
Restlets VirtualHost system to create several instances of the Qi4j
app, each with its own name and hence distinct entitystores, log
files, configuration, etc. The application instances are in other
words separate, but share the classloader, which makes it very
efficient.

In order to make this easier to work with in JMX I have just changed
the ObjectName pattern used when exposing applications in JMX. The
pattern is now:
Qi4j:application=<name>,layer=<name>,module=<name>,class=Service,name=<Service
name>
This gives for only one root in VisualVM, and then all the application
instances will show up as children of that root.

This is a very powerful trick, I think, and if anyone else is
interested in doing virtual hosting of Qi4j apps, let me know and I
can share some of the details.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to