Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 75812 invoked from network); 22 Apr 2003 21:03:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 22 Apr 2003 21:03:57 -0000 Received: (qmail 1307 invoked by uid 97); 22 Apr 2003 21:05:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 1300 invoked from network); 22 Apr 2003 21:05:59 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 22 Apr 2003 21:05:59 -0000 Received: (qmail 73171 invoked by uid 500); 22 Apr 2003 21:03:30 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 73106 invoked from network); 22 Apr 2003 21:03:29 -0000 Received: from pheriche.sun.com (192.18.98.34) by daedalus.apache.org with SMTP; 22 Apr 2003 21:03:29 -0000 Received: from ha2sca-mail1.SFBay.Sun.COM ([129.145.155.61]) by pheriche.sun.com (8.9.3p2+Sun/8.9.3) with ESMTP id PAA14932 for ; Tue, 22 Apr 2003 15:03:35 -0600 (MDT) Received: from apache.org (d-usca14-133-182 [129.145.133.182]) by ha2sca-mail1.SFBay.Sun.COM (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id h3ML3YX23479 for ; Tue, 22 Apr 2003 14:03:34 -0700 (PDT) Message-ID: <3EA5AEA3.5020404@apache.org> Date: Tue, 22 Apr 2003 14:05:39 -0700 From: Amy Roh User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: [5.0.2] New tag at the end of the week ? References: <20030422014556.36981.qmail@web9403.mail.yahoo.com> <3EA4D6D2.9050302@apache.org> <3EA58FA6.6090306@apache.org> <3EA59FD6.2000904@sun.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Costin Manolache wrote: > Amy Roh wrote: > > >>>If you have a use case where this would actually help - we should discuss >>>it and do the change ASAP ( but on all components- I really don't see any >>>way embed can work otherwise ). >> >>Here is my use case and background info. I need to create multiple >>engines (one engine per connector) because in TC we support defaultHost >>in engine level. However, AppServer that I'm working on supports one >>defaultHost per listener(connector). This forces me to create one >>engine per listener which results in having as many engines as listeners >>to map AppServer domain.xml and TC server.xml. AppServer has its JSR77 >>mbeans for domain, server, applications, ejbmodules, etc. We want to >>use Tomcat MBeans for WebModules & Servlets sharing one default domain. >> Not allowing multiple engines per domain means that the deployed >>WebModules will have different domains which doesn't follow JSR77. >>Maybe you have a better idea/suggestion to resolve this issue if we >>don't allow multiple engines per domain. > > > For the first part - it works both ways. If you use 1 Engine/domain - then > you'll also have each connector in the same domain with the corresponding > engine. I see no problem here. This is not an issue. The issue is that we need WebModules and Servlets to be in the same domain as the J2EEServer. > > The second part is a bit trickier ( and it seems a valid use case ... ). > You want the WebModules and Servlets to be in the same domain. I think this > can be done with some changes in WebModules and Servlets. > > Let me ask you one question first: would it be ok if we use the j2eeServer > to match the engine name ( and it's domain ) ? No. J2EEServer and J2EEApplication names should be set as part of integration as you mentioned and should be out of Tomcat scope. This will only restrict more on top of domain name having to be the same as engine name. > > You see - the real problem is that the JSR77 name is fixed - you have webapp > name, j2eeApplication ( that's the .ear - and it's part of the integration > code with j2ee server to set it right ), and j2eeServer. Nothing else. My > understanding was that all webapps will be in the same j2eeServer, and this > would be set by the integration code. Right. > The webapp mbean needs to find the engine - at least in embeded case. Right > now all it needs is in its own name. And I assume other pieces of code > could benefit from beeing able to tell what engine a webapp is associated > with - looking at the name. > > We could just use an attribute in StandardContext and StandardWrapper to > override the domain - in case using the j2eeServer attribute is not > acceptable. > But that would break if you have 2 webapps with the same name, inside > identical EARs running on 2 different connectors - the generated name will > be completely identical. I assume different connectors correspond to > different vhosts - and if this is the case, I think it's reasonable to > expect to be able to deply the same .ear on 2 vhosts. > > > Could you point to the JSR77 section where the mbeans are required to be in > the same domain ? My understanding so far has been that the domain is not > specified, and implementations can use it, for example to deal with this > case, of multiple servlet engine instances running in the same j2eeServer, > with the same context name and j2eeApplication. If you look at JSR77.3.2, J2EEServer extends J2EEDomain. J2EEModule(WebModule) and J2EEApplication extend J2EEDeployedObject which extends J2EEServer. Therefore, all WebModules that are deployed under J2EEServer should be in the same J2EEDomain. When TC is integrated in AppServer, if multiple engines are created, there isn't a way for the WebModules to be under same domain. They'll get deployed under engine name domain not the J2EEServer, J2EEDomain from the integration which is not JSR77 compliant. What do you think? Amy > > > Costin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org