Not sure if this is at all helpful, but you can use CATALINA_BASE to
create separate base sets of applications that launch from a single
Tomcat, each running in their own JVM.
Basically just copy:
conf
server
temp
webapps
work
directories from a the main tomcat install. Edit the new conf/server.xml
to run the app on a separate port. Add your app to webapps. Then set
CATALINA_BASE=path to your base install. Start Tomcat. I use Apache to
map the requests to the appropriate install (although Tomcat can do this
too).
If you work on several projects, it is a good idea to configure your dev
environment to have projects in separate base installs, so you can run
them discretely without having to load magnolia each time you start
tomcat (which take quite a while).
Zoran Balkic wrote:
Paul Worrall wrote:
Hi,
Can you tell me if ${servername} in the list of locations for the
property initializer refers to the domain names used in the URL. I was
hoping to have a number of web addresses with their own content
configuration served by the same webapp instance.
Or is it resolved once when the webapps loads and ${servername} is the
primary servername of the server.
Therefore does it mean I have to have a webapp per instance of
Magnolia for each web site
he property initializer just being something that reduces the need to
have more than one source tree.
:-)
Hello Paul!
I am not sure if I got your point, but I will try to answer my solution
for it.
I have one magnolia war used for both public and admin instance. I have
configured
property initializer to have two repositories under
/repositories/public/*, /repositories/admin/*
You have to change paths used during bootstrap to actually use two
different configs!
One war deployed (under name magnolia), than two different application
names (admin and public) in
Tomcat conf. When loaded, proper magnolia instance name is passed to
property initializer
and properly bootstrap the admin and the public apps into their
respective directory under
repositories.
After that you can use Apache in the front of it and map it as you wish
but still having only
one war. The problem I run into, was the app name configured in tomcat
conf. The conf I
was using didn't want to respect given app name, but instead was using
dir name of the path given.
I created symbolic links from admin, public to this magnolia war and it
worked quite good.
I actually don't know if this is good approach at all, maybe some full
time magnolias could say
something about this. ;)
Cheers
Zoran
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------