Questions tagged [apache-commons-pool]

Apache Commons Pool is a general purpose, object pooling framework for the Java programming language.

Apache Commons Pool is a component of the Apache Commons project. Apache Commons Pool is general purpose, object pooling framework, is open source software distributed under the Apache License, Version 2.0, and is the underlying object pooling framework for Apache Commons DBCP.

52 questions
0
votes
1 answer

Creating a Pool of Objects with Java

Awhile ago I created a program that created socket connections and funneled their input to a single telnet connection to our legacy server. The goal of the project is to create a front end for the legacy database and eventually move to a modern…
0
votes
1 answer

JMS Connection Pooling in Message Listener

Currently i'm working on a standalone Java apps that connects to a Websphere MQ to send and receive messages. The flow is in asynchronous mode, which we implemented using MessageListener class to retrieve the messages from the queue when they are…
ipohfly
  • 1,959
  • 6
  • 30
  • 57
0
votes
1 answer

Maximum number of threads (200) created for connector with address null and port 8080

I am getting this error on prod in approximately every 7-8 days. So to debug this issue I downloaded the thread dump file. This file has following thread state 100 times: "http-8080-198" daemon prio=10 tid=0x08a62c00 nid=0x3a78 in Object.wait()…
vikas27
  • 563
  • 5
  • 14
  • 36
0
votes
1 answer

Object pool with the ability save objects on exit and reload on start?

Apache Commons seems to be the decent Object Pool implementation out there. Or any other framework that could support the cause How Can I save its state of the pool during shutdown; may be serialize its objects to a external form json, xml ..? and…
Njax3SmmM2x2a0Zf7Hpd
  • 1,354
  • 4
  • 22
  • 44
0
votes
2 answers

Apache Pool can't return object in spring controller/service

I am trying to use apache pool2 to pool some resources. I have it working fine in a unit test, but when I try using it in spring 3, I get an error. Everything else is working with the Controller and Service. I could access the endpoint before I…
Andy N
  • 392
  • 3
  • 8
  • 24
0
votes
1 answer

Add objects to object pool

I am trying to add objects to object pool. I am using apache commons pool for this. My code as is as follows: public ObjectPool consumerPool; public ObjectPool consumerPool; public void buildConsumerPool(){ …
Nischal Hp
  • 435
  • 1
  • 6
  • 21
0
votes
2 answers

why Threads get blocked when i use Apache-Commons-Pool?

Here is my demo: PoolableObjectFactoryImpl.java public class PoolableObjectFactoryImpl implements PoolableObjectFactory { private static Logger logger = Logger.getLogger("BackgroundLog"); @Override public void activateObject(Result obj)…
Allerson
  • 109
  • 1
  • 2
  • 11
1 2 3
4