They are two different frameworks. The article you linked to earlier was
about using bndtools to debug a karaf distribution and not about enroute
http://enroute.osgi.org/appnotes/bndtools-and-karaf.html. I would suggest
if you looking to use karaf then you start there with the karaf maven
tools.
I'm using enRoute and targeting Karaf.
On 16/11/2016 11:59, David Daniel wrote:
It is really going to depend on your library and bundles you use. I
used to do it in my activator like
import java.util.Dictionary;
import org.ops4j.pax.web.extender.whiteboard.ResourceMapping;
import
org.ops4j.
It is really going to depend on your library and bundles you use. I used
to do it in my activator like
import java.util.Dictionary;
import org.ops4j.pax.web.extender.whiteboard.ResourceMapping;
import org.ops4j.pax.web.extender.whiteboard.runtime.DefaultResourceMapping;
import org.osgi.framework
Basically I was just trying to understand the documentation I quoted;
I'd been led there whilst looking for some way to serve a static
resource from a less complicated URL. I have not found any documentation
of how to actually use ConditionalServlet - your response below tells me
that I can do
Hi Tim,
You just need a class that implements ConditionalServlet, and register it (for
example) using DS.
By following the ConditionalServlet algorithm, you should be able to accomplish
anything you need to do.
It may be easier if you have more specific questions. What are you trying to
acc
In
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.web.simple.provider
it says
"By adding, removing, and reordering |ConditionalServlet|s, you can gain
unlimited control of what happens on the root path."
How, exactly? - what does one actually *do* to "add" (eg) a
Cond