Search:

Type: Posts; User: MHarhen; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    2,565

    Thanks for the clarification - I had erroneously...

    Thanks for the clarification - I had erroneously assumed that the ContextLoaderPlugIn was intented to be a full alternative.
  2. Replies
    14
    Views
    11,062

    In my HttpSession, I have a prototype bean...

    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...
  3. Replies
    2
    Views
    2,565

    Bug in Struts ContextLoaderPlugIn?

    The documented method of obtaining a reference to the WebApplication context is:

    WebApplicationContext webApplicationContext =...
  4. Replies
    3
    Views
    4,606

    Re: Get Bean Define from DataBase?

    Look at this topic http://forum.springframework.org/showthread.php?t=9640
    - code is available.
  5. Re: OS Environment variables for Property Placeholders

    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...
  6. Replies
    18
    Views
    14,447

    Re: nice work, thanx a lot!

    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"
    ...
  7. Replies
    18
    Views
    14,447

    Re: nice work, thanx a lot!

    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)...
  8. Thread: Memory Leak

    by MHarhen
    Replies
    15
    Views
    8,478

    Can you explain why you are checking for...

    Can you explain why you are checking for identical classloaders?

    Thanks
  9. Replies
    14
    Views
    11,062

    Serializability is desirable for beans stored in...

    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...
  10. Replies
    14
    Views
    11,062

    My mistake - you are correct - I did not receive...

    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...
  11. Replies
    14
    Views
    11,062

    My vote is for serializability: 1. The Java...

    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...
  12. Replies
    18
    Views
    14,447

    Code to set bean properties using a database

    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
    ...
  13. Replies
    14
    Views
    11,062

    Serialization error using

    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...
  14. Replies
    18
    Views
    14,447

    Code to set bean properties using a database.

    Code has been updated as of September 5. See my September 5 posting.
  15. Replies
    18
    Views
    14,447

    The code is still in progress. It works, but I...

    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.
  16. Replies
    18
    Views
    14,447

    Answers: 1. Yes - PropertyMapper has an...

    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...
  17. Replies
    18
    Views
    14,447

    Dynamic reconfiguration of bean properties using JDBC

    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....
Results 1 to 17 of 17