Jul 18th, 2011, 03:23 PM
OSGI for large web app?
Wondering if Spring OSGI a viable solution for large scale web apps (>300 concurrent users). Anyone here as build a production app using Spring OSGi and deployed in tomcat 6.x or WAS 7.x. How does the performance look like?.
It appears Spring OSGi example comes with Tomcat 5.x embedded inside OSGI environment. Is that the typical way of deploying app or it would be better with OSGI embedded inside the Tomcat?
Jul 19th, 2011, 01:02 AM
I had an application with > 100 users in the simplest scenario. But it's not the users like human. Mostly, users are defferent applications. I don't see any problems with performance.
About the second quetsion, I think the better way will be creating your web app and deploy it as the bundle into OSGi environment rather that embedding osgi enviroment inside web app.
If you'll try to embed osgi container inside your web application, be prepared to solve different classloading issues. You need to configure osgi container properly. This scenario has many risks.
Jul 20th, 2011, 04:07 PM
Is your app a web app? What app server you used, Tomcat 6.x? It tappears to me OSGify app server is tedious and Spring OSGi only comes with GSGified Tomcat 5.x.
Jul 21st, 2011, 12:25 AM
No, I use Jetty instead of Tomcat, but it's very simple to switch between them.
Originally Posted by beta
Also, I didn't use plain OSGi implementation with spring. I use Karaf. It has a lot of useful things and web support to.
I used plain Osgi implementation (Felix) with spring-osgi modules and I configured web support as described here but it's very difficult. Karaf is much more simplier.