Hi Marc, this sounds very interesting and promising. Ok, what you propably need is a (OSGi) extender Pattern as Blueprint or Spring-Dm work. But this is only my first thought about it. I'll take a look at your problem later today and will get back to you :)
Regards, Achim 2011/4/29 Marc Klinger <mklin...@nightlabs.de>: > Hi! > > I am trying to integrate portlet functionality (JSR 168 / JSR 286) into > an OSGi environment using Apache Pluto and PAX Web. I have a first > working proof-of-concept which supports portlet views and actions and > pluggable themes. > > What I have done to get a portlet application deployed is a little hack > in pax-web-extender-war WebAppPublishingHttpServiceListener. Whenever a > war-bundle is deployed as a web application, it looks for the existence > of a portlet.xml file. If the file exists, a portlet servlet is added to > the web app context and handed over to a portlet-container service. The > service then deploys the registered portlets using the servlet and its > servlet context. > > I would prefer a better solution to trigger the portlet deployment and > don't want the war extender bundle to depend on my portlet service API. > Has anybody here an idea how to do this in a way that fits into the war > extender? What my service needs is at least the bundle instance and the > web app HttpContext to be able to add additional (portlet-) servlets to > the existing context. The service (or a listener) should be notified > whenever a webapp is registered or unregistered. > > Is there already a event mechanism that can be used to achieve that? Is > it a good idea to propagate the HttpContext instance with events? > > Any idea and help is appreciated! > > Thanks, > Marc > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > -- -- *Achim Nierbeck* Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general