Results 1 to 2 of 2

Thread: How to use the scope of the Bean

  1. #1

    Default How to use the scope of the Bean

    I want to know how do we manage the scope of the bean mentioned in aplicationContext.xml.

    I have a bean defined this way.

    <bean id="employeeHandle" class="EmployeeHandler">
    <property name="employeeDao"><ref bean="employeeDao"/></property>
    </bean>

    How to make scope to session?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    The scope of the bean is the lifetime of the JVM (or until it get GC'd) and it can be singleton or prototype.

    If you're talking about adding it to the web session, you do that manually.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •