Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-17 Thread Bob Jolliffe
2009/4/17 Knut Staring : > 2009/4/14 Bob Jolliffe >> >>   BTW if people are looking for >> MSAccess-like functionality, I've been fiddling with my h2 databases >> using OpenOffice Base and its pretty good.  Check >> http://www.h2database.com/html/tutorial.html#open_office for simple >> setup. > >

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-17 Thread Knut Staring
2009/4/14 Bob Jolliffe > BTW if people are looking for > MSAccess-like functionality, I've been fiddling with my h2 databases > using OpenOffice Base and its pretty good. Check > http://www.h2database.com/html/tutorial.html#open_office for simple > setup. > Trying to folllow this, but having

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-14 Thread Bob Jolliffe
2009/4/14 Lars Helge Øverland : > > A few comments: > > - I agree that we could define and implement the various use-cases more > properly in the service layer, and see if more code could be moved from the > web layer (I actually had a go at this last week for the reporting module). > The way I see

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-14 Thread Lars Helge Øverland
A few comments: - I agree that we could define and implement the various use-cases more properly in the service layer, and see if more code could be moved from the web layer (I actually had a go at this last week for the reporting module). The way I see it this applies the most to the customized d

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-12 Thread Bob Jolliffe
Hi Saptarshi 2009/4/11 Saptarshi Purkayastha : > From all the experiments on the state servers and our office server, we have > learnt a few lessons, some of which may be useful to other implementers and > developers: > > We have started different tomcats on different ports and each tomcat uses >

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-11 Thread Saptarshi Purkayastha
Sorry for missing this out, I meant JPA+TopLink instead of hibernate in the previous email --- Regards, Saptarshi PURKAYASTHA Director R & D, HISP India Health Information Systems Programme My Tech Blog: http://sunnytalkstech.blogspot.com You Live by CHOICE, Not by CHANCE 2009/4/11 Saptarshi Pu

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-11 Thread Saptarshi Purkayastha
>From all the experiments on the state servers and our office server, we have learnt a few lessons, some of which may be useful to other implementers and developers: We have started different tomcats on different ports and each tomcat uses 1GB max memory. The advantage of such a setup is that diff

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-10 Thread Bob Jolliffe
On tomcat I put ALL jars in shared/lib. And I have this at the bottom of my server.xml: And yes, if I uncomment, I can start all 20 of these instances on my 2M machine without any particular stress on my available Perm space. They are all sharing the s

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-10 Thread Knut Staring
On Tue, Apr 7, 2009 at 9:47 AM, Bob Jolliffe wrote: > > If you pull out all the WEB-INF/lib/*.jar files from the war and place > those into tomcat's lib directory you are left with a dhis.war which > is only 1.8M. (I did it on jetty, but same should apply to tomcat). For some reason, it seems

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Knut Staring
On 4/7/09, Bob Jolliffe wrote: > 2009/4/7 Lars Helge Øverland : > I suspect this is a bit of a fringe case - I don't know too many folk > who might want to run 11 dhis instances on one server. Not at all. Though 11 is a bit high, we have the same issue on our "demo" server, and the need for such

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Bob Jolliffe
2009/4/7 Lars Helge Øverland : > > > On Tue, Apr 7, 2009 at 11:01 AM, Bob Jolliffe wrote: >> >> Just another thought. >> >> DHIS2 is now also configured to pick up a system property (dhis2.home) >> in the absence of a DHIS2_HOME environment variable.  Lars added this >> feature so that I can deplo

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Lars Helge Øverland
On Tue, Apr 7, 2009 at 11:01 AM, Bob Jolliffe wrote: > Just another thought. > > DHIS2 is now also configured to pick up a system property (dhis2.home) > in the absence of a DHIS2_HOME environment variable. Lars added this > feature so that I can deploy dhis2-lite without getting users to > fidd

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Bob Jolliffe
Just another thought. DHIS2 is now also configured to pick up a system property (dhis2.home) in the absence of a DHIS2_HOME environment variable. Lars added this feature so that I can deploy dhis2-lite without getting users to fiddle with environment variables. If you are deploying multiple inst

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Bob Jolliffe
Knut is correct. This should work. I'm really interested to hear. BTW on tomcat I believe you should be putting the other jars in shared/lib. Good luck. Cheers Bob 2009/4/7 Knut Staring : > On Tue, Apr 7, 2009 at 9:59 AM, John lewis wrote: >> >> Bob, to run different application in the same

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Knut Staring
On Tue, Apr 7, 2009 at 9:59 AM, John lewis wrote: > Bob, to run different application in the same tomcat we need to change the > hibernate property file which is located in > WEB-INF/lib/dhis-support-hibernate-2.0.1-SNAPSHOT.jar. IF we are moving out > web-INF/lib folder then we are moving even t

Re: [Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread John lewis
Bob, to run different application in the same tomcat we need to change the hibernate property file which is located in WEB-INF/lib/dhis-support-hibernate-2.0.1-SNAPSHOT.jar. IF we are moving out web-INF/lib folder then we are moving even the hibernate file also. Dont know we can solve this. John O

[Dhis2-devs] running 11 dhis2 webapps on one tomcat

2009-04-07 Thread Bob Jolliffe
Hi John How are you and Saptar getting on with this challenge? I did a little experiment this morning. The dhis.war is about 35M of mostly compressed application and framework classes which is one of the reasons why it is a herculean effort for tomcat to try and load it multiple times into memor