Re: Thread.sleep CPU time

2017-05-10 Thread Stevo Slavić
Maybe sleep call is in a loop - busy waiting, and sleeping too short. Sleep longer, observe latency after the change. In Java 9 there will be extra option http://download.java.net/java/jdk9/docs/api/java/lang/Thread.html#onSpinWait-- On Wed, May 10, 2017 at 9:44 AM, Oliver Fernandez < oliver.ferna

Re: [ANN] Apache Tomcat 8.0.14 available

2014-10-14 Thread Stevo Slavić
Congrats on the release! It seems docs haven't been updated (completely), there are still WebSocket 1.0 references like ones on http://tomcat.apache.org/tomcat-8.0-doc/web-socket-howto.html Kind regards, Stevo Slavic On Wed, Oct 1, 2014 at 12:08 PM, Mark Thomas wrote: > On 01/10/2014 11:00, Jo

Re: Maven plugin for Tomcat 8?

2013-05-29 Thread Stevo Slavić
Guessing, maybe just "overriding" plugin dependencies will work even with current released version of the plugin. Kind regards, Stevo Slavić. On Wed, May 29, 2013 at 12:44 PM, Olivier Lamy wrote: > Currently no idea. > That will probably need an other module (tomcat8). &

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Stevo Slavić
Hello Steven, Just a wild guess, you're probably using same credentials/account in context.xml for both data sources, while you're using different credentials/account in each Spring datasource bean. Kind regards, Stevo. On Thu, Mar 15, 2012 at 2:12 PM, Steven Xiong wrote: > I have a Spring/JPA

Re: tomcat-dbcp interceptors

2011-11-11 Thread Stevo Slavić
Hello Daniel, You're right, commons-dbcp and tomcat-dbcp seem to be same, I missed tomcat-jdbc module which seems to provide extensions and judging by the pom (see [1]) it depends only on tomcat-juli. I found the answers at [2] and [3]. Thanks! Regards, Stevo. [1] http://repo1.maven.org/maven2

tomcat-dbcp interceptors

2011-11-11 Thread Stevo Slavić
Hello Tomcat users, I have couple of tomcat-dbcp related questions: 1) Can tomcat-dbcp be used outside of tomcat e.g. in non-web apps? 2) If yes, are all features available as when used within tomcat? 3) Most importantly are custom interceptors supported when tomcat-dbcp is used outside tomcat? 4

Re: [OT] Is incoming connection request queue totally ordered?

2011-10-17 Thread Stevo Slavić
Yes, I meant what happens once connection requests are in the queue, regardless if it's AJP connection requests queue, or HTTP connection requests. I wasn't considering that part, but thanks for clarifying, if the two connectors (I guess it applies even if there are two connectors for same protocol

Is incoming connection request queue totally ordered?

2011-10-17 Thread Stevo Slavić
Hello Tomcat users, Are HTTP and AJP connector incoming connection request queues totally ordered (FIFO)? Just want to make sure whether connection requests waiting for executor will fight for it once one becomes available, or will the order connection request were made be respected. Regards, Ste

Re: Source of after_start and stop LifecycleEvent

2011-06-01 Thread Stevo Slavić
Pardon, it's StandardService and not StandardEngine that's source of these events (Apache Tomcat 6.0.32). Regards, Stevo. On Wed, Jun 1, 2011 at 4:42 PM, Stevo Slavić wrote: > Hello Tomcat users, > > Does anyone know has it been changed after Apache Tomcat 6.0.13 that > so

Source of after_start and stop LifecycleEvent

2011-06-01 Thread Stevo Slavić
Hello Tomcat users, Does anyone know has it been changed after Apache Tomcat 6.0.13 that source of LifecycleEvent of "after_start" and "stop" type is org.apache.catalina.core.StandardEngine instead of org.apache.catalina.Server? I'm experiencing issues with JBoss mod_cluster: http://community.jbo

Re: [ANN] Apache Tomcat 7.0.12 released

2011-04-09 Thread Stevo Slavić
Since these requests to upload maven artifacts are repeating regularly after a release, obviously publishing these artifacts is not part of the release process, but community expects/requires them. Why not make it automatic part of release process? Regards, Stevo. On Sun, Apr 10, 2011 at 12:13 AM

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Stevo Slavić
If ajax requests need session state, then IMO Tomcat can not help you with that - it can not and should not differentiate requests issued by ajax and requests issued by user. In that case one solution would be to logout user with a logout request after timeout. Where ajax requests live, javascript

Re: How to disable JSR 250 annotations processor ?

2011-03-01 Thread Stevo Slavić
Just tried, for plain spring managed object which is neither servlet, nor filter nor listener, @PostConstruct method gets called only once on Tomcat 7. Regards, Stevo. On Sun, Feb 27, 2011 at 9:41 PM, Stevo Slavić wrote: > If I understood spec (servlet-3_0-final-spec.pdf) well, this serv

Re: How to disable JSR 250 annotations processor ?

2011-02-27 Thread Stevo Slavić
If I understood spec (servlet-3_0-final-spec.pdf) well, this service is required only for servlets, filters, and listeners (Table 15-1 Components and Interfaces supporting Annotations and Dependency Injection, chapter 15, page 179 of specification, page 201 of pdf). Yevgen, on which beans did you e

Re: Servlet 3.0, @WebFilter and ordering

2011-02-09 Thread Stevo Slavić
On Wed, Feb 9, 2011 at 7:46 AM, Konstantin Kolinko > wrote: >> 2011/2/8 Christopher Schultz : >>> On 2/8/2011 4:31 AM, Stevo Slavić wrote: >>>> I don't see support for >>>> ordering in @WebFilter annotation. Am I missing something? >>>

Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Stevo Slavić
Hello Tomcat users, Now that Tomcat 7 is out with Servlet 3.0 support, I've been trying out new features it brings. In pre 3.0 servlet era, one would specify filter in web.xml and order they are defined in the xml would determine order filters would get applied. I don't see support for ordering in

Re: how to access tomcat conf dir from my webapp

2011-01-25 Thread Stevo Slavić
String tomcatHomePath = System.getenv("CATALINA_HOME"); // or CATALINA_BASE, where CATALINA_HOME/CATALINA_BASE is name of environment variable set to point to tomcat installation home or instance base java.io.File tomcatConfDir = new java.io.File(tomcatHomePath, "conf"); Regards, Stevo. On Tue,

Re: retrive Arabic data

2009-05-28 Thread Stevo Slavić
have effect on how site is rendered? Maybe some application Abdul installed on XP but not on two servers brought with itself additional fonts which site/page just happens to makes use of. Regards, Stevo. On Fri, May 29, 2009 at 1:02 AM, Andre-John Mas wrote: > > On 28-May-2009, at 10:0

Re: retrive Arabic data

2009-05-28 Thread Stevo Slavić
Or Tomcat installations are configured differently on each of the environments, e.g. Connector URIEncoding attribute. On Thu, May 28, 2009 at 3:28 PM, Youssef Mohammed < youssef.moham...@gmail.com> wrote: > On Thu, May 28, 2009 at 4:23 PM, abdul razack wrote: > > Hi Mark, > > > > As you suggest