Hello.
I want to be able to use an instance of a servlet in more than one
context. In other words, I want to be able to have the following URLS
access the same instance of my application:
www.example.com/green/
www.example.com/blue/
The app will parse the URL in order to get its context (i.e. "green" or
"blue").
Since the two are based on the same app, but in different contexts, it
would be overkill to have to redeploy a new instance for each context.
However, when I try this, I get an Exception:
javax.servlet.ServletException: servlet already registered
at
org.ungoverned.osgi.bundle.http.HttpServiceImpl.registerServlet(HttpServiceImpl.java:129)
Is this an expected behaviour (i.e. I'm doing something bad and should
be sent to my room with no desert)?
If so, is there some other legal and established way I can achieve what
I'm trying to do?
The spec mentions that, understandably, two different servlets cannot be
registered under the same alias. However, I see no mention either way of
registering the same servlet under two different aliases. I don't see
why this should be illegal...
Thank you!
Dave
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev