You can't do this, because mod_perl shares the namespaces in use amongst all Apache processes. That means $MyApp::foo is global.
Unless Catalyst is being very, very clever and not using any global or class variables at all. It's possible, but quite difficult as it involves rebuilding lots of things on each request. (random act of guesswork)
But the different namespaces are still shared. You need some initial thing to point it at the individual namespace that it should be using. For example,
Thank you, but, i don't think that thread is talking about the same issue. I want the same application running twice, and that thread is about multiple applications on the same apache.
Out of luck (Score:2)
You can't do this, because mod_perl shares the namespaces in use amongst all Apache processes. That means $MyApp::foo is global.
Unless Catalyst is being very, very clever and not using any global or class variables at all. It's possible, but quite difficult as it involves rebuilding lots of things on each request. (random act of guesswork)
This sort of thing is easy with PHP, though. :)
-Dom
Re:Out of luck (Score:2)
Actually this is very easy. Put everything that is shared in the same namespace, put everything that isnt in different namespaces.
Ok, its not that easy, but you get a lot of saves memory for it. You should be alright, if you control all apps and test them together :)
Re:Out of luck (Score:2)
But I still reckon it's easy to break, particularly when compared to PHP's shared nothing philosophy.
-Dom
Catalyst already supports this? (Score:1)
Re:Catalyst already supports this? (Score:1)
Thank you, but, i don't think that thread is talking about the same issue. I want the same application running twice, and that thread is about multiple applications on the same apache.