Jules is correct, Contexts can not destinguish between multiple
listeners in the same HttpServer. If you want to have listener
specific contexts, then you must have multiple servers.
The jboss-jetty module only takes a single config file, thus it
only starts a single HttpServer. However I don't see why you can't
just start a second Jetty MBean on another config file which
contains the admin servlets. I assume that all the MBeans are
loaded with the same classloader, so they can see each other?
cheers
Julian Gosnell wrote:
> Hmmmm....
>
> I have a feeling that Listeners do not act as a scope for Contexts as Contexts
> scope Servlets. I think the Listener space is global, in which case you simply
> kick off 2 HttpServers from the same config file (Greg - can you do this ?),
> and put one Listener in each.
>
> I shall forward this to Greg, Jetty's author, for a knowledgeable response.
>
> Jules
>
>
> "Lyon, Bruce" wrote:
>
>
>> Jules -
>>
>> Thank you for the prompt response. That approach will do for now. I
>> just made some mistakes before about what path the servlets would end up
>> under, and consequently I was looking for them in the wrong place...
>>
>> I know I can start multiple listeners in jetty.xml. If I wanted
>> different servlets to run under different listeners (on different ports),
>> how would I get a context to go with a particular listener?
>>
>> Bruce Lyon
>>
>> -----Original Message-----
>> From: Julian Gosnell [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, February 01, 2001 9:51 AM
>> To: jBoss
>> Subject: Re: [jBoss-User] jboss_jetty configuration
>>
>> Bruce,
>> The version of jboss_jetty in CVS allows you to do
>> this, but relies (I believe) on changes made to JBoss
>> since the version in the bundle was frozen.
>>
>> In the meantime, I don't understand why merging your
>> admin.xml file into your jetty.xml should not work.
>>
>> You can't just copy the entire contents of admin.xml
>> into jetty.xml (I think) but should try to grok both
>> and merge their contents.
>>
>> Hope that helps,
>>
>> Jules
>>
>> P.S.
>>
>> If all you want is the admin and debug servlets, just
>> copy the addServlet calls from admin.xml into the '/'
>> context (the one with 'Dump' in it in jetty.xml)
>>
>> Good luck.
>> --- "Lyon, Bruce" <[EMAIL PROTECTED]> wrote: >
>> JBoss gurus:
>>
>>> I am trying to get jboss_jetty (JBoss-PRE2.1 with
>>> jetty 3.0.2)
>>> working on NT and RH7 Linux.
>>>
>>> I would like to be able to run the jetty
>>> demonstration admin and
>>> debug servlets. In jetty without jboss, the script
>>> that runs jetty
>>> (jetty.sh) takes as arguments the names of the xml
>>> configuration files it
>>> should use. Thus, to run jetty with the services and
>>> webapps specified in
>>> jetty.xml and the admin and debug services
>>> specified in admin.xml, I use
>>> "jetty.sh jetty.xml admin.xml".
>>>
>>> I cannot figure out how to make jetty read more
>>> than one xml file
>>> when using jboss_jetty. I have tried inserting the
>>> contents of admin.xml
>>> into jetty.xml and I have tried adding a new arg to
>>> the jetty service
>>> mlet
>>> in jboss.conf; neither of these approaches seems to
>>> be correct.
>>>
>>> What should I do? I have not been able to find a
>>> discussion of this
>>> topic on the mailing-list archive.
>>>
>>> Thank you,
>>>
>>> Bruce Lyon
>>>
>>>
>>> --
>>>
>>
>> --------------------------------------------------------------
>>
>>> To subscribe:
>>> [EMAIL PROTECTED]
>>> To unsubscribe:
>>> [EMAIL PROTECTED]
>>> List Help?: [EMAIL PROTECTED]
>>>
>>
>> __________________________________________________
>> Get personalized email addresses from Yahoo! Mail - only $35
>> a year! http://personal.mail.yahoo.com/
>>
>> --
>> --------------------------------------------------------------
>> To subscribe: [EMAIL PROTECTED]
>> To unsubscribe: [EMAIL PROTECTED]
>> List Help?: [EMAIL PROTECTED]
>>
>> --
>> --------------------------------------------------------------
>> To subscribe: [EMAIL PROTECTED]
>> To unsubscribe: [EMAIL PROTECTED]
>> List Help?: [EMAIL PROTECTED]
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
--
Greg Wilkins<[EMAIL PROTECTED]> GB Ph/Fax: +44(0)7092 063462
Mort Bay Consulting Australia and UK. http://www.mortbay.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]