Re: Share info across different sessions & servers

2013-07-03 Thread mailingl...@j-b-s.de
Hi! what about treating this problem as a chat system? You want to broadcast messages, right? Maybe http://cometd.org/ is of any help (did not use it now personally) Jens Sent from my iPhone On 04.07.2013, at 00:14, Vince Stewart wrote: > Hi Jose, > > a couple of things, > 1) I use embedded

Re: Share info across different sessions & servers

2013-07-02 Thread mailingl...@j-b-s.de
Hi! What kind of data do you want to share? Just a view "bytes"? Is there an requirement concerning durability/persistence/performance? Is this user=session related or do you want to share data in general? Usually if you have a session id the lb will route your user always to the same container

Re: Best practices for shared classloader use?

2013-06-04 Thread mailingl...@j-b-s.de
Hi Don! Usually each Webapp has its own classloader thus two webapps can have different versions of the same class. Classloaders are chained so if a class is not found search continues in the next classloader. Shared just means one classloader is used by different webapps thus you may run into

Re: Best practices for shared classloader use?

2013-06-04 Thread mailingl...@j-b-s.de
Hi Don! You can try to move only common libs shared by all yor different webapps to the shared classloader but leave the application core in seperate war files? Jens Sent from my iPhone On 04.06.2013, at 17:36, Don Asper wrote: > I am considering using the Tomcat 7 shared classloader to r

Re: Ideal way to minimize resources used by Tomcat for sessions

2012-11-18 Thread mailingl...@j-b-s.de
Why do you need a Webserver at all? What about plain Java Sockets instead? Jens Von meinem iPad gesendet Am 19.11.2012 um 03:34 schrieb Baron Von Awsm : > My web app consists of a single servlet, no JSPs and no static content. The > servlet retrieves XML from POST submissions and hands the XML

Re: high CPU usage on tomcat 7

2012-09-30 Thread mailingl...@j-b-s.de
ond > But a shortage on memory is hard to recover > > Jeff > > Le vendredi 28 septembre 2012, mailingl...@j-b-s.de a écrit : > >> Maybe an infinite loop? We observed something similar due to a bug in the >> java regex impl and certain user input causes this regex looping

Re: high CPU usage on tomcat 7

2012-09-27 Thread mailingl...@j-b-s.de
Maybe an infinite loop? We observed something similar due to a bug in the java regex impl and certain user input causes this regex looping behaviour. As this locked one core but to the user it simply looked like server was not responding, guess what happend? Right: they press refresh page and ne

Re: R: how to read files in file system

2012-09-17 Thread mailingl...@j-b-s.de
Try: URI uri = new URI("file//c:/.."); // win Or "file:///yourdir/.." on unix (note 3 "/"). From uri you can get the url and from here you can open an inputstream or you can use "new File(url.toFile())" To access a resource from your classpath the following will do: URL url = Thread.curren

Re: redirecting people to maintenance mode

2012-08-20 Thread mailingl...@j-b-s.de
What about a non-tomcat solution like a load balancer (apache, nginx?) in front of your tomcats? Sent from my iPhone On 21.08.2012, at 12:25, Miguel González Castaños wrote: > Dear all, > > I have a Tomcat web server. From time to time, I need to do some > maintenance and want people not

Re: [OT] Observer pattern?

2012-06-12 Thread mailingl...@j-b-s.de
JMS (like ActiceMQ) Terracotta DSO? Jens Sent from my iPhone On 13.06.2012, at 06:12, Albert Kam wrote: > If you are talking about how to notify other webapps, i think you're > actually talking about integration between existing applications here, > which can be done using RMI (java only an