That dictionary is used as initParams in ServletConfig for the servlet.

You may have to rely on implementation specific behavior here. The fact that you are asking in this forum indicates to me that you are using Felix HTTP Service implementation, in which case, I don't know what, if it at it does, it sets as the servlet name. Someone here would know for sure.

Sahoo

Jackson, Bruce wrote:
There are some third party frameworks (in my case, I'm using Echo 3) that use 
this value for tracking of application instances. If it can't be set, all 
Echo-based apps will interfere with one another.

From the spec, it looks like the Dictionary passed into registerServlet() 
should be used to create the ServletContext object, which in turn has a 
getServletName method. Thus, I assumed there was some item in the Dictionary 
that was used for this purpose.

----- Reply message -----
From: "Sahoo" <[email protected]>
Date: Tue, Apr 20, 2010 23:31
Subject: Http service and servlet name
To: "[email protected]" <[email protected]>

I don't think there is any such mapping defined. It's an implementation
detail. Where do you see the need for this mapping from a user's point
of view?

Thanks,
Sahoo

Jackson, Bruce wrote:
Does anyone happen to know: what is the equivalent to the <servlet-name>
tags in the web.xml for programmatically using the OSGi http service?

Do I put these into the Dictionary object passed into the registerServlet()
method, and if so, what is the key entry for the Dictionary?

Thanks

Bruce



Reply via email to