In my opinion this is a bit overkill, at least the options for
using DelayQueue and PriorityBlockingQueue. They require the
Runnable queue elements to implement the Delayed and Comparable
interfaces, respectively. I don't see how to make use of that in
an EJB method call.
I looked at the Sun
hmm,
on the jvm implementation i personnaly think it is a good implementation
but the unbounded linkedblockingqueue case is not the one for which the
impl was designed IMO that's why it sounds strange i think.
about the conf i prefer to not switch to synchrous queue too easily since
it can
yeah it works as expected but it is not what we (often) want, typically
RejectedExecutionException are an issue
in fact that's the only difference between all cases: when
will RejectedExecutionException be thrown
the linked case is the one avoiding it the more (but using more memory)..
solution
On Aug 21, 2012, at 2:18 AM, Bjorn Danielsson wrote:
In my opinion this is a bit overkill, at least the options for
using DelayQueue and PriorityBlockingQueue. They require the
Runnable queue elements to implement the Delayed and Comparable
interfaces, respectively. I don't see how to make
Great! I'll give it a try when you update. I use @Timeout also,
but I haven't been stress-testing that stuff as much yet.
According to the docs, PriorityBlockingQueue is always unbounded,
so at least one other queue type would be needed if bounded queues
are to be an option (making
On Aug 21, 2012, at 11:27 AM, David Blevins wrote:
On Aug 21, 2012, at 2:18 AM, Bjorn Danielsson wrote:
In my opinion this is a bit overkill, at least the options for
using DelayQueue and PriorityBlockingQueue. They require the
Runnable queue elements to implement the Delayed and
AsynchronousPool.KeepAliveTime
*Romain Manni-Bucau*
*Twitter: @rmannibucau*
*Blog: http://rmannibucau.wordpress.com*
2012/8/20 zeeman hamz...@fastmail.us
Great, thanks.
--
View this message in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908
://rmannibucau.wordpress.com*
2012/8/20 zeeman hamz...@fastmail.us
Great, thanks.
--
View this message in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
.
--
View this message in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
*
*Blog: http://rmannibucau.wordpress.com*
2012/8/20 zeeman hamz...@fastmail.us
Great, thanks.
--
View this message in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html
Sent from the OpenEJB User mailing list
weird it was 10, by defaukt we were between 10 and 20...
btw here is the new config(s):
https://issues.apache.org/jira/browse/TOMEE-382
*Romain Manni-Bucau*
*Twitter: @rmannibucau*
*Blog: http://rmannibucau.wordpress.com*
2012/8/19 David Blevins david.blev...@gmail.com
Looks like we need
Great, thanks.
--
View this message in context:
http://openejb.979440.n4.nabble.com/Number-of-simultaneous-Asynchronous-threads-tp4656891p4656908.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Hi guys,
Is there some way to configure the size of the thread pool used
for @Asynchronous execution of session bean methods? I can't get
more than 10 simultaneous threads executing @Asynchronous methods,
and I didn't find any obvious setting for this in tomee.xml or
service-jar.xml.
Version
Looks like we need to add a config property for it. Easy change -- will
add it tomorrow unless Romain beats me to it (on my phone).
On Saturday, August 18, 2012, Bjorn Danielsson wrote:
Hi guys,
Is there some way to configure the size of the thread pool used
for @Asynchronous execution of
15 matches
Mail list logo