Re: Cluster session failover question

2010-07-22 Thread Jon Brisbin
l let you use a URL as a health checker. My article on using HAProxy rather than mod_jk/mod_proxy_ajp: http://www.tomcatexpert.com/blog/2010/07/12/trick-my-proxy-front-tomcat-haproxy-instead-apache Jon Brisbin Portal Webmaster NPC International, Inc. > > > > Are there any configuratio

Re: Self-Contained Web Applications

2010-06-25 Thread Jon Brisbin
On Jun 25, 2010, at 3:59 PM, Pid wrote: > Which part of the container hierarchy would the DataSource be attached to? Wouldn't it make sense to scope it to the Context, since you'd be using the webapp's classloader? Jon Brisbin Portal Webmaster NPC

Re: question for sso session replication in tomcat 6.0.26

2010-06-22 Thread Jon Brisbin
s.org/wiki/usingmodproxywithjboss Jon Brisbin Portal Webmaster NPC International, Inc. On Jun 22, 2010, at 3:48 PM, Okubo, Yasushi (TSD) wrote: > Hi > > I downloaded apache apache v2.2.15 and compiled and installed, but the > result was the same. > > Session sso replication looked

Re: Support multiple apache contexts via one tomcat webapp context

2010-06-15 Thread Jon Brisbin
the only thing I really need Apache for is serving PHP pages. That said, it seems to me it would simpler to proxy "/a" and have a servlet look at PATH_INFO, then forward to whatever path or context you want. Jon Brisbin

Re: Session clustering across different contexts

2010-06-15 Thread Jon Brisbin
com Code is on GitHub: http://github.com/jbrisbin/vcloud/tree/master/session-manager/ Downside is it requires another component (RabbitMQ). Jon Brisbin Portal Webmaster NPC International, Inc. > > Mark > > > >

Re: Dynamic configuration of workers

2010-05-07 Thread Jon Brisbin
we talked about cloud architectures etc... Sort of related: I just put some serious updates into my vcloud session manager that uses RabbitMQ to do non-multicast session "clustering" in a cloud environment, which is the next problem I had to tackle after getting past my load balancer

Re: How to force session replication per request in a Tomcat 6 cluster

2010-04-28 Thread Jon Brisbin
that you should only > put immutable objects in the session and tomcat is trying to direct > users to best practice? I got to the point where, in my private, hybrid cloud environment, there aren't best practices, so I had to just do it myself. Jon Brisbin Portal Webmaster NPC Interna

Re: How to force session replication per request in a Tomcat 6 cluster

2010-04-28 Thread Jon Brisbin
I don't know if this really answers your question or not, but I have written a custom Valve that calls my own replicateSession method. You could do something similar in maybe 10 minutes to call the requisite methods on the session Manager/Store. Jon Brisbin Portal Webmaster NPC Internat

Re: Way to generate a "localhost.log" instead of "localhost-4-20-2010.log"?

2010-04-19 Thread Jon Brisbin
t tab multiple times because there are several months and many days of log files in these directories. Those keystrokes add up and it's often no faster to use tab than it is to just type the full filename. If, on the other hand, one could type "less lo/lo", I could work faster and

Re: The question of automatic restart Tomcat

2010-04-13 Thread Jon Brisbin
";" > > Run user-defined commands when an OutOfMemoryError is first thrown. > (Introduced in 1.4.2 update 12, 6) There's also: -XX:OnError=";" Run user-defined commands on fatal error. (Introduced in 1.4.2 update 9.) Jon Brisbin Portal Webmaster

Re: The question of automatic restart Tomcat

2010-04-13 Thread Jon Brisbin
mail--including "top" output--letting me know what happened). Thanks! Jon Brisbin Portal Webmaster NPC International, Inc. On Apr 13, 2010, at 11:37 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Eugene, > > On 4/13/2010 7:18 AM, M

Non-multicast session clustering with RabbitMQ

2010-04-09 Thread Jon Brisbin
k's not even dry on it yet. I guess that's my way of saying: if you try it out and it doesn't work, please don't swear at me. ;) Patches welcome, of course... Jon Brisbin Portal Webmaster NPC International, Inc. -

Re: Problems with ImageIO

2010-04-07 Thread Jon Brisbin
(though it's maybe not even related) setting up a new Tomcat server on a fresh Ubuntu Linux install. We also use tif images and I had to install a couple extra ImageMagick packages, as well as something in JAI to get it to recognize .tif as a format. Until I did that, I could not process ti

Re: RabbitMQ-based vcloud session clustering

2010-04-06 Thread Jon Brisbin
abbitMQ-based because it uses tight integration between the session store and the RabbitMQ java API. I had originally thought I might make it a little more generic and make it JMS-specific, but I decided I had better work out the bugs using code I know works first. JMS (and maybe JMS/Sprin

RabbitMQ-based vcloud session clustering

2010-04-05 Thread Jon Brisbin
ty for something like this? If there's no interest, I won't bother writing documentation and what-not. Does this sound like it would interest any other Tomcat/RabbitMQ users? Jon Brisbin Portal Webmaster NPC International, Inc.

Re: how to configure log4j path to work both in Tomcat and from the CLI?

2010-03-02 Thread Jon Brisbin
talina.home} to nothing). > The CATALINA_HOME environment variable is set correctly. Run your ant script with a "-D" defined for catalina.home (or any other properties that exist in your webapp's environment..."ant -h" is always helpful here ;). e.g.: a

Re: using my own LifecycleListener

2010-02-23 Thread Jon Brisbin
On Feb 23, 2010, at 12:32 PM, Caldarale, Charles R wrote: > The servlet spec is required reading before you ever touch any servlet > container. Oops. Guess I missed that memo. Crap. Now I'm going to have to resign! I'm living a lie. ;) Jon Brisbin Portal Webmaster NPC In

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-23 Thread Jon Brisbin
If anyone is interested, I'll share my results when done. This sound very interesting to me. I'd love to take a look at it when you're done. I'm still fighting load-balancing issues. Jon Brisbin Portal Webmaster NPC International, Inc. > Best regards!!! >

Re: VSphere4 and tomcat 6.0

2010-02-17 Thread Jon Brisbin
. This means I either have no idea what I'm doing (possible :) or things just run differently on VMs than they do on real hardware. Jon Brisbin Portal Webmaster NPC International, Inc. On Feb 17, 2010, at 3:39 AM, Daniel Dreier wrote: > Hello, > > I want to use tomcat 6.0 on a vs

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-15 Thread Jon Brisbin
user without forcing another login? Jon Brisbin Portal Webmaster NPC International, Inc. On Feb 15, 2010, at 11:05 AM, Simone Tripodi wrote: > Hi all guys and very nice to meet the Tomcat community, > I've a web-application that needs to be replicated in more than one > Tomcat, an