I marked this issue OT because i think is a conceptual issue and not related to
any application per se.
I have 2 main issues with concurrency, one class is a queue
public class Queue {
private static org.apache.log4j.Logger log = Logger.getLogger(Queue.class);
private Command command;
oStop(); //this turn keepRunning to false
c.interrupt();
while(c.isAlive())
{
log.info("Waiting for consumer to stop"); //now im facing a loop here, consumer
never stops
}
}
On Aug 21, 2011, at 11:49 AM, Felix Schumacher wrote:
>
>
> alexis schrieb:
>
>> I marked this issue
i just did :) ill be using these on the new version of my app
thanks again
On Aug 21, 2011, at 12:34 PM, Felix Schumacher wrote:
> Am Sonntag, den 21.08.2011, 12:13 -0300 schrieb Alexis Fidalgo
> [voiceovernetinc]:
>> forget it, fixed. thanks again
> Even though. Have you ha
Hello, sorry to post OT, im facing an issue to handle some xml using jaxb and i
would like to know if somebody can help on this.
Again, sorry to bother on this, but is important.
thanks in advance
-
To unsubscribe, e-mail: users
Hi, im recently suscribed to the list and my apologies if this topic has been
treated before, if so, please point me to those threads :)
I have an application running as daemon, this application handles n queue
managers (one per thread) reading those queues from a database. once an item is
queu
Great, thanks to all that answered.
regards
On Jan 14, 2011, at 12:54 PM, Caldarale, Charles R wrote:
>> From: alexis [mailto:alz...@gmail.com]
>> Subject: how to start 1 to n daemon threads at deploy time
>
>> as soon tomcat is started and my webapp deployed, start n t
Hello, usually i store my custom config files in WEB-INF, but i need now to
store a file (a binary file containing a license for my app) inside the tomcat
conf dir. Main purpose for this is avoid the need to rebuild a war every time i
license a different customer.
So, in this way, application t
Hello, if i need to share a custom class (that instantiate other clases) within
my webapp, where multiple threads need to access this class to read and write
(via synchronized methods), how can achieve this?
thanks
-
To unsubsc
) approach and i use it as Listener, how can i access this class
from other threads/classes on my webapp?
thanks again
On Jan 30, 2011, at 10:32 PM, Brett Delle Grazie wrote:
> Hi,
>
> On 31 January 2011 00:37, alexis wrote:
>> Hello, if i need to share a custom class (that instantia
ibute line?
On Jan 31, 2011, at 7:36 AM, Konstantin Kolinko wrote:
> 2011/1/31 alexis :
>> actually im already using a class extending servletcontextlistener, this
>> class is the responsible to start all other threads on processing. Some
>> threads stores results on a DB, so
out.println("");
out.println("Servlet testcontext at " + request.getContextPath
() + "");
out.println("test: "+li.getTest()+"");
out.println("");
out.println("");
} finally
it's
instantiated from another class and a method is called from there. there's no
http request on this class. i've also declared this class as a servlet in the
web.xml of my app.
On Jan 31, 2011, at 4:40 PM, Caldarale, Charles R wrote:
>> From: alexis [mailto:alz...@g
that access the database)
Let me know if you need more info.
thanks in advance
On Jan 31, 2011, at 7:13 PM, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alexis,
>
> On 1/31/2011 4:48 PM, alexis wrote:
>> The only difference i found i
--
pointing my browser to my app (example) http://localhost:8080/lcms3/testcontext
i can perfectly see test: test99test99
That is what i setted on my context at my app start.
Up to here, everything works without any problem.
But, what i need and i cannot achieve is that
Hello, I have a situation as follows.
3 jsp pages, using a connection pool to postgres. All 3 pages are the same
regarding code, only varies the tables where queries are directed.
I have 2 or 3 selects on each page where I store the user selection on the
session with session.setattribute
I get
out.println("");
}
%>
<%= rs1.getInt("callsoffered")%>
<%= rs1.getInt("acdcalls")%>
<%= rs1.getInt("avgspeedans")%>
<%= rs1.getInt("abandcalls")%>
Hello all, im facing an issue, ive been testing for a while different
approaches without success.
I have a servlet that basically does
. creates an image
. store the image on disk
. returns an html tag pointing to the stored image.
reason why the servlet doesnt returns the image directly using
perfect, ill check this.
Thanks for the answer.
On May 5, 2011, at 5:42 PM, Leo Donahue - PLANDEVX wrote:
>> -Original Message-
>> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
>> Subject: RE: storing images
>>
>>> From: alexis [mai
hu, 05 May 2011 20:00:57
To: Tomcat Users List
Reply-To: "Tomcat Users List"
Subject: Re: storing images
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alexis,
On 5/5/2011 2:19 PM, alexis wrote:
> I have a servlet that basically does
>
> . creates an image
> . store the i
e-
> From: Christopher Schultz
> Date: Thu, 05 May 2011 20:00:57
> To: Tomcat Users List
> Reply-To: "Tomcat Users List"
> Subject: Re: storing images
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alexis,
>
> On 5/5/2011 2:19 PM, alexis wrote:
&
ssage-
From: Mark Thomas
Date: Fri, 06 May 2011 09:09:55
To: Tomcat Users List
Reply-To: "Tomcat Users List"
Subject: Re: storing images
On 06/05/2011 01:19, alexis wrote:
> What i did (im testing and profiling it) is.
>
> As the images are around 10/12 and each image has
-Original Message-
From: Mark Thomas
Date: Fri, 06 May 2011 09:09:55
To: Tomcat Users List
Reply-To: "Tomcat Users List"
Subject: Re: storing images
On 06/05/2011 01:19, alexis wrote:
> What i did (im testing and profiling it) is.
>
> As the images are around 10/12 and each ima
; On Thu, May 5, 2011 at 2:19 PM, alexis wrote:
>
>> Hello all, im facing an issue, ive been testing for a while different
>> approaches without success.
>>
>> I have a servlet that basically does
>>
>> . creates an image
>> . store the image on disk
>>
berry
-Original Message-
From: Christopher Schultz
Date: Fri, 06 May 2011 09:48:45
To: Tomcat Users List
Reply-To: "Tomcat Users List"
Subject: Re: storing images
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexis,
On 5/5/2011 8:19 PM, alexis wrote:
> Im sto
orst case it's
>> 450kbytes when all images are created and stored.
>>
>>
>> Enviado desde blackberry
>>
>> -Original Message-----
>> From: Christopher Schultz
>> Date: Fri, 06 May 2011 09:48:45
>> To: Tomcat Users List
>> Re
Hello all, is there any way to recover lost connectios on a pool?
Here's the issue, for an application, using postgresql jdbc (same happens with
mysql as i tried), having query errors syntax or duplicated keys, actually no
big deal, it throws an sqlexception upon que sql error, as this call exec
thread "XCALL3-Scheduler" java.lang.NullPointerException
at java.util.ArrayList.toArray(ArrayList.java:303)
at com.lesi.xcall3.core.DAO.getSchedulerTasks(DAO.java:384)
at com.lesi.xcall3.core.Scheduler.run(Scheduler.java:35)
at java.lang.Thread.run(Thread.java:
On May 8, 2011, at 1:22 PM, Felix Schumacher wrote:
> Am Sonntag, den 08.05.2011, 12:29 -0300 schrieb alexis:
>> Here's a snippet of my code, this method was with the described problem
>>
>>
>> public void insertVDNInfo(VDNInfo vdns) throws SQLExceptio
yes, that looks bad too , sorry.
actually i changed the whole method.
On May 8, 2011, at 2:38 PM, Bob Hall wrote:
>>try {
>>while (it.hasNext()) {
>>c1 = getConnection();
>
>
> You should move getConnection() outside of the while() block.
>
> - Bob
>
> ---
eck it and let you know.
Thanks again, sorry by the length of this message.
On May 11, 2011, at 4:05 PM, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alexis,
>
> On 5/6/2011 10:52 AM, alexis wrote:
>> I understand, but i have top 12
On May 13, 2011, at 11:47 AM, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alexis,
>
> Marking off-topic because this has nothing whatsoever to do with Tomcat.
>
> On 5/11/2011 5:06 PM, alexis wrote:
>> For real time purposes,
asshole
On May 18, 2011, at 12:59 PM, alex zaim wrote:
> http://Ramostech.com/cool01.11.php?ID=730
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.o
Hello, how can i search for older mails on the list, i need to read again about
deploy same webapp on different contexts to test new versions.
thanks
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional co
Hello, im running an app that has a class that implements
ServletContextListener (Server class), on that class i create a thread of
Listener (that implements Runnable)
Listener starts a ServerSocket that listen on a port, and in a periodically
manner, this app receives a string, parses the stri
could even have your Runnable implement the
> LifecycleListener directly and
> have your registered object keep a list of objects that need to be notified.
>
> There are dozens of ways to do this, pick one that works for you. Don't
> forget to investigate all of
>
Hello, all, i know this one is OT but i cannot figure it out how to do this
im reading from a socket with a bufferedreader using readLine, it works
perfect, problem is some messages has no termination at all, so readLine never
completes.
How can i deal with this? i know i can read char by cha
rds.
--Original Message--
From: Christopher Schultz
To: Tomcat Users List
ReplyTo: Tomcat Users List
Subject: Re: OT: about readers
Sent: Jun 16, 2011 19:16
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alexis,
On 6/16/2011 5:36 PM, alexis wrote:
> im reading from a socket with a buffer
If you can submit this one, you can submit the mod_jk issue. Give it a try.
Both works, mod_jk and this list.
Kindly and best regards
--Original Message--
From: Franz
To: users@tomcat.apache.org
ReplyTo: Tomcat Users List
Subject: Mod_jk fails to connect via ajp13
Sent: Jul 30, 2011 23:1
as far as i see, I'm not quite expert on mod_jk but I've been using it a lot.
This logs shows that the mount occurs. What does apache access and error logs
says (also the jk log in debug mode) when you try to reach your mounted apps?
On Jul 31, 2011, at 9:08 AM, Franz wrote:
>> If you can submi
k fails to connect via ajp13
Hi Alexis -
Thanks for the answer.
For all I can tell, apache is unaware of any mapping. It looks for
the apps under the default doc root. The JkShmFile message I think
is no problem, a shared memory file gets created under the apache
log directory.
The jk log file
forget it, fixed. thanks again
On Aug 21, 2011, at 12:06 PM, alexis wrote:
> better, concurrency issue is gone, facing a new one, i cannot stop the
> Consumer thread, i have this
>
>
> @Override
>public void run() {
>
>dao = (DAO) sc.getAttrib
41 matches
Mail list logo