Hi
Thanks for the response. I do have the cglib jar in the lib directory of the web application so it should be available to Spring.
David
Type: Posts; User: madisonDave; Keyword(s):
Hi
Thanks for the response. I do have the cglib jar in the lib directory of the web application so it should be available to Spring.
David
Hi
I am running Spring 1.2.8. I am starting a Singleton context listener in a web app. The singleton provides access to the Object Pool from Jakarta Commons Pooling. When the web app starts I...
Bill
Thank you for your comments. It seems there might be times that a single thread might want to have multiple instances of a bean to work with. It doesn't seem particularly intuitive or clear...
Hi
There are a variety of properties for the CommonsPoolTargetSource. Is there a way to set these in an applicationContext.xml such as
<property name="minIdle" value="2"/>
or do I simply...
Hi
This way of working with the Pool does not seem particularly intuitive. It seems that part of the process of abstracting the creation of objects away from explicit calls is somewhat negated by...
Hi
I wasn't aware that I had to explicitly work with the Pool object. That did the trick. I get the pooled object from the application context and it works.
Thanks for the suggestion.
David
Helllo
I setup object pooling using Jakarta Commons. I developed a test Bean and Client. The test bean has an int instance variable which is initialized to -1. When it is first retrieved from...
Thanks to to Injecteer and mdenium for their help. Everything is working.
Just out of curiosity - once a thread is done is there a way to return the object to the pool? Some explicit call?
...
First off thank you so much for your help. I have the issues resolved you mentioned including adding the jars. The web app starts ok, but when I call the servlet which should be able to access the...
Hi
I have now addressed the comments above and am getting the following errors:
7/17/06 10:56:26:421 CDT] 00000014 ApplicationMg A WSVR0221I: Application started: SpringWebTestEAR
[7/17/06...
Hi
I initially didn't have that line in the applicationContext.xml and had problems, so I tried adding that line. I have since removed it and am still having the same problem.
Thanks.
David
Hi
In my servlet the code I use to access the bean is:
ApplicationContext ac = new XmlWebApplicationContext();
int count = 10;
Vector holder = new Vector();
for (int i=0; i <...
Hi
I am testing Object Pooling using the Commons framework from Apache (Spring 1.2.8)
The applicationContext.xml looks like this (see bold below):
<beans>
<bean id="pooledBean"...
The objects to be managed are not connected to a database. These objects use java wrappers which have JNI calls to external functionality. The instantiation of the external functionality is quite...
Hi
One of the objects that will be wired together for our application will be caching some non-volatile database data. Since this rarely changes instead of having Spring create new objects and do...