Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Open Open
Priority: Critical Critical
Assignee: rajiv
Reporter: Nazrul
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Support simple servlet use case

Created: 26/Oct/08 09:12 PM   Updated: 27/Jan/09 02:56 PM
Component/s: API
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 9
Participants: Jennifer Chou, Nazrul and rajiv

 Description  « Hide

The concept of scattered war is nice. It would be useful if embedded API could
support simple Servlet use also without requiring full war archives.

See Jetty example:

Nazrul added a comment - 04/Dec/08 11:25 AM


Nazrul added a comment - 15/Dec/08 03:58 PM

Need help from Jennifer.

Jennifer Chou added a comment - 14/Jan/09 02:04 PM

email thread with Jan:

> Is there a way to add a Servlet object on the fly as in this example is there?
> Like adding an instance of HelloServlet using new HelloServlet() to Context,
instead of specifying the Servlet class.

> We currently don't support adding an already instantiated servlet to a context,
> but we could add support for it as well (however, it is not clear whether
> we would need to call the servlet's init() method in this case).

ok. I was looking at the simple Servlet case in terms of supporting the Servlet
without needed it to be in a WAR.
for issue

Let me know if you'd like to try supporting this for this release.

Jennifer Chou added a comment - 15/Jan/09 03:04 PM

Created issue 7050 under v3 web container requesting support for simple servlet
use case.

Jennifer Chou added a comment - 27/Jan/09 02:56 PM

Web tier folks will expose the WebContainer API replacing some of the existing
methods on Server, like createVirtualServer and createHTTPListener.
Transfer to Rajiv - the web folks will work on this from embedded prelude branch.