Thanks for the clarification - I had erroneously assumed that the ContextLoaderPlugIn was intented to be a full alternative.
Type: Posts; User: MHarhen; Keyword(s):
Thanks for the clarification - I had erroneously assumed that the ContextLoaderPlugIn was intented to be a full alternative.
In my HttpSession, I have a prototype bean "userBean" containing information about the currently logged on user. This bean has a reference to a singleton bean "userManager" which manages all user...
The documented method of obtaining a reference to the WebApplication context is:
WebApplicationContext webApplicationContext =...
Look at this topic http://forum.springframework.org/showthread.php?t=9640
- code is available.
The code used at http://forum.springframework.org/showthread.php?t=9640 can be used to initialize a bean using System Properties.
1. Create an InitParameters object:
<bean...
The updated code is available from : http://members.cox.net/jwebutil/InitParameters.zip
I was able to get a Timer working as follows:
<bean id="initParameters"
...
karsten, thanks for your comments. Your workflow description is accurate.
Problem a) You are correct - a fix will require a 1 line change to PropertyMapper.createPropertyValues().
Problem b)...
Can you explain why you are checking for identical classloaders?
Thanks
Serializability is desirable for beans stored in HttpSessions. That is why I am trying to make my beans Serializable.
If you are suggesting that an attachToFactory(BeanFactory bf) method could be...
My mistake - you are correct - I did not receive serialization errors because my bean inadvertently held a static reference to a BeanFactory.
It is now clear to me that any bean holding a direct...
My vote is for serializability:
1. The Java convention is that containers/collections should be serializable e.g. HashMap, although their contents may not be serializable.
2. Not enabling...
I have written code to enable initialization of a bean using initialization parameters from a database table. The code can be downloaded from:
http://members.cox.net/jwebutil/InitParameters.zip
...
I have just downloaded the release version of Spring 1.1. I am using lookup method injection using <lookup-method name="..." bean="..." />. It works perfectly.
However I receive a "Not...
Code has been updated as of September 5. See my September 5 posting.
The code is still in progress. It works, but I need to clean it up. I'll target completion in about a week, if not sooner.
Answers:
1. Yes - PropertyMapper has an initMethod property.
2. By dynamic reconfiguration, I mean changing the properties of a bean during execution. It is done by calling the...
I have written some code to initialize bean properties using initialization parameters stored in various locations e.g. database table, servlet context, servlet init parameters, Map, Properties, etc....