First...I would be careful about pigeon holing your code into Jetty only...your GBean will not work with Tomcat. I would look for a more generic way of handling this. I believe we have an interface called WebContainer that may be more appropriate. We can add on to it if you need more generic access to the underpinnings of a container/server. Both the Jetty and Tomcat servers in Geronimo implement this interface.

But to answer your question...your GBean constructor needs to take a JettyContainer parameter. For an example of how this is done, look at the JettyWebAppContext code. It will show you exactly what you need to do.

Jeff

Krish (sent by Nabble.com) wrote:
Hi

thanks for the info.

I add the reference in myGBean plan.

What should i do in GBean code to get the Jetty server object now?

Regards
Krishnakumar B
------------------------------------------------------------------------
Sent from the Apache Geronimo - Dev <http://www.nabble.com/Getting-reference-of-Jetty-server-in-Geronimo-t212825.html#a595538> forum at Nabble.com.

Reply via email to