Re: Session across multiple hosts?

2007-04-21 Thread Johnny Kewl
I had another look at this and I think this has to be the only way... short of writing the authentication code ourselves. For it to work you must have stuff in you web.xml file ie if the page is not protected, its not going to start working... and it will "only" start working when th

Sticky sessions not changing servers

2007-04-21 Thread lightbulb432
I've configured mod_jk and have sticky sessions, but every request is going to the exact same Tomcat instance and not the other instance. I've tried setting the loadbalancer method to both Request and Busyness, but they both do the same thing. It works as expected when sticky sessions are disable

Re: Session across multiple hosts?

2007-04-21 Thread Jeremy Cowgar
Unfortunately that did not work. The cookie still got set as domain.com, not .domain.com I have in server.xml: className="org.apache.catalina.authenticator.SingleSignOn" cookieDomain=".localhost"/> Now, this is still in development, thus the localhost,

Re: Session across multiple hosts?

2007-04-21 Thread Johnny Kewl
Greetings! Earthling Jeremy, Never tried this before, but I'm going to have a guess because I've seen this question before, and that didn't seem to have much luck... The underlying technology at work is the cookie... so what happens is the browser gets a JsessionId cookie from the server and

Re: Different security constraints for different ip addresses

2007-04-21 Thread Mark Thomas
Omar Eljumaily wrote: > I want to be able to give non login authorization for a local subnet, > but force everybody else to login to a site. > > Can I do this with combinations of ip-constraint and auth-constraint in > web.xml? No, since the servlet spec does not define a constraint based on ip-a

Re: Cannot get a connection, pool exhausted

2007-04-21 Thread Rashmi Rubdi
On 4/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: is there anything else i should change for getting the pool connection to work? Thanks in advance. Most of the best practices and common mistakes to avoid are covered here: http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-exampl

Different security constraints for different ip addresses

2007-04-21 Thread Omar Eljumaily
I want to be able to give non login authorization for a local subnet, but force everybody else to login to a site. Can I do this with combinations of ip-constraint and auth-constraint in web.xml? Something like the following would give access to a private subnet. Could I give access to every

Re:Cannot get a connection, pool exhausted

2007-04-21 Thread [EMAIL PROTECTED]
Now instead of set connection static i just create a new one for each query to perform, so if there are concurrent queries it shouldn't cause any problem: private Connection getConnection() throws Exception { // get context: provides the starting point for resolution of names Contex

Cannot get a connection, pool exhausted

2007-04-21 Thread [EMAIL PROTECTED]
Hello, i'm trying to achieve DBCP with tomcat 5.5.9. I thought to have done things right since the application could connect to db, but after a night that the application was running, in the morning, in logs, i saw a lot of "Cannot get a connection, pool exhausted" errors. This is my configurati