Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2009, 01:12 PM
Registered User
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I map multiple context roots to a single web application?

I have a requirement to have multiple sites running against the same war file and the same set of JSP pages.

Such that:

http://mycompany.com/storeA/pages/index.jsp
http ://mycompany.com/storeB/pages/index.jsp


Is there a way in tomcat that I can map multiple context roots to the same web application? What if I use JBoss? Is there any OS level stuff I can do, like virtual directories?
 
Old November 29th, 2009, 01:47 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Domain aliases might be the topic you need to look into.

Look for "host name aliases" section at the below link
http://tomcat.apache.org/tomcat-5.5-...nfig/host.html
__________________
- Rakesh
http://iam-rakesh.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set context in web application [PLEASE HELP] arashdx J2EE 3 January 27th, 2009 03:53 AM
How to create context help in web application? Alexds ASP.NET 2.0 Basics 1 February 1st, 2006 06:23 PM
How can I map 132+ fields of a single table in VB ishh_sh VB How-To 0 January 1st, 2005 01:32 AM
ASP.Net Single Single-on with Oracle Application S guhanath Oracle 0 October 6th, 2004 05:05 AM
Single or Multiple application. Gibs_poovath General .NET 7 May 25th, 2004 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.