Hi, context-root is a "hint" to deployment tools and as such will be used by
the Orion deployment tools when suggesting a mapping at deployment time. The
actul root specified is a deployment setting though and as such doesnt
belong in the assembly descriptor. For instance a web-app can on the same
server be mapped to different roots on different sites etc. I agreee that
the spec is a little (very) uncler on this point.
Hope it helps!
/Magnus Stenman, the Orion team
----- Original Message -----
From: "Robert Krueger" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, July 21, 2000 6:49 PM
Subject: confusion about the use of context-root in orion
> hi,
>
> I must say that I'm a little confused about the way context-root is used
in
> orion, which may be due to lack of understanding of the spec on my part.
>
> say, I want to use a web application under a certain context-root
> ("/myroot") in a website. what I do is put an entry in the relevant
> web-site.xml file like so:
>
> <web-app application="myapp" name="myapp-web" root="/myroot" />
>
> works like a charm with everything (redirects etc.) being interpreted
> relative to the contextPath "/myroot". now, what is the use of the J2EE
> "context-root" element in application.xml? I get the impression it is not
> being used at all. the spec doesn't say too much about the element ("sets
> the context root"). does orion's root attribute in web-site.xml replace
the
> context-root element in J2EE? if I specify it nothing changes, even if I
> put nonsense in there. I like the orion mechanism as it works and is very
> flexible (I can use the same web-application under many context roots in
> different websites) but it would be good to know what that does to spec
> conformance.
>
> some clarification on this matter would help.
>
> thanks,
>
> robert
> (-) Robert Kr�ger
> (-) SIGNAL 7 Gesellschaft f�r Informationstechnologie mbH
> (-) Br�der-Knau�-Str. 79 - 64285 Darmstadt,
> (-) Tel: 06151 665401, Fax: 06151 665373
> (-) [EMAIL PROTECTED], www.signal7.de
>