Re: Osgifing Tomcat
Hello, As part of OW2 JOnAS 5.0 OSGi based application server we're interested to have Tomcat packaged as an OSGi bundle. All our modules are bundles and if tomcat is already a bundle we won't have to wrap it into a bundle on our side. Regards, Florent Henri Gomez wrote: Hi to all, Did there is plans, ideas or interest around about OSGI-fing Tomcat ? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Osgifing Tomcat
Our bundle of Tomcat is exposing JOnAS service API. I think that from a tomcat bundle view it should expose its own interface like API for registering/deploying a war component, etc. If you want to see some source code, it's in the SVN. http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/jonas/jonas/trunk/jonas/modules/services/web-container/tomcat/6.0.x/?rev=13842 Apache Felix iPOJO is used as well as the maven-bundle-plugin: for the maven bundle plugin : http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/jonas/jonas/trunk/jonas/modules/services/web-container/tomcat/6.0.x/src/main/resources/META-INF/jonas-web-container-tomcat-6.0.bnd?rev=13488&view=markup metadata.xml for iPOJO : http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/jonas/jonas/trunk/jonas/modules/services/web-container/tomcat/6.0.x/src/main/resources/metadata.xml?rev=13058&view=auto Regards Florent Henri Gomez wrote: 2008/4/23 Florent.BENOIT <[EMAIL PROTECTED]>: Hello, As part of OW2 JOnAS 5.0 OSGi based application server we're interested to have Tomcat packaged as an OSGi bundle. All our modules are bundles and if tomcat is already a bundle we won't have to wrap it into a bundle on our side. Regards, Hum do you have some stuff to contribute or show us for review ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Osgifing Tomcat
Yes, the modular aspect is for sure a better choice. So we can have a smaller Tomcat (by only using few bundles) or bundles loaded on demand. Regards, Florent Filip Hanik - Dev Lists wrote: Henri Gomez wrote: 2008/4/23 Florent.BENOIT <[EMAIL PROTECTED]>: Hello, As part of OW2 JOnAS 5.0 OSGi based application server we're interested to have Tomcat packaged as an OSGi bundle. All our modules are bundles and if tomcat is already a bundle we won't have to wrap it into a bundle on our side. Regards, Hum do you have some stuff to contribute or show us for review ? sure, for the whole bundle, it would look like this, but what I would like to do for trunk, is to do one per JAR file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Osgifing Tomcat
Yes, that looks great. Also, for OSGi, as all is done by package (import/export) the first step is to be sure that API and Implementation are never in the same package name. So we can export APIs and keep private the implementation. Florent Henri Gomez wrote: Yes, the modular aspect is for sure a better choice. So we can have a smaller Tomcat (by only using few bundles) or bundles loaded on demand. +1 And select which part of the engine to be used. What make HTTPD server so successfull was its modular approach and openess. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Osgifing Tomcat
Henri Gomez wrote: Indeed I'll try to spend some time on mavenize tomcatlight first and how it could be done then for tomcat trunk. Next how to OSGIfy the mavenized tomcats, experiences and advices welcomed here Once Tomcat has been mavenized, with maven-bundle-plugin you can produce bundles by specifying the import/export/private/etc. package in a specific file or in the maven pom.xml file. This plugin can analyze the existing classes (with BND tool) and may do a lot of work for you to detect the packages that you want to import/export/etc. After that, you may begin to start to use OSGi Declarative Services, Apache Felix iPOJO, etc. Florent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]