Issue Details (XML | Word | Printable)

Key: EMBEDDED_GLASSFISH-9
Type: Improvement Improvement
Status: Open Open
Priority: Critical Critical
Assignee: rajiv
Reporter: Nazrul
Votes: 0
Watchers: 0
Operations

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

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

Environment:

Operating System: All
Platform: All


Issuezilla Id: 9
Tags:
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:
http://jetty.mortbay.org/xref/org/mortbay/jetty/example/OneServletContext.html



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:

Jennifer:
> Is there a way to add a Servlet object on the fly as in this example is there?
> http://jetty.mortbay.org/xref/org/mortbay/jetty/example/OneServletContext.html
>
> Like adding an instance of HelloServlet using new HelloServlet() to Context,
instead of specifying the Servlet class.

Jan:
> 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).

Jennifer:
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 https://embedded-glassfish.dev.java.net/issues/show_bug.cgi?id=9

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.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=7050


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.