My problem is in this method, bat I don't knew what is it :
can you help me ?
public Object take() throws InterruptedException {
final ReentrantLock lock = this.lock;
lock.lockInterruptibly();
try {
try {
while (count == 0)
notEmpty.await();
} catch (InterruptedException ie) {
notEmpty.signal(); // propagate to non-interrupted thread
throw ie;
}
Object x = extract();
return x;
} finally {
lock.unlock();
}
}
James.Strachan wrote:
>
> 2009/1/19 omoumen <[email protected]>:
>>
>> Non, we don't use PooledConnectionFactory.
>> We use JMS (jmsTemplate102) of Spring for sending and receiving the
>> message.
>> we don't programming any thing about pooling, if ther's any management of
>> pooling, it's encapsulate in ActiveMQ or Spring.
>
> Please read that document again :). You should use
> PooledConnectionFactory if using ActiveMQ with JmsTemplate
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>
>
--
View this message in context:
http://www.nabble.com/Lock-in-ActiveMQ-and-Weblogic-tp21542855p21563025.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.