Results 1 to 2 of 2

Thread: prototype beans

  1. #1

    Default prototype beans

    <bean id="pseudoDemandStatusJobListener" class="com.uprr.app.csr.job.CustomJobListener">
    <property name="enaNotificationVO" ref="enaNotificationVO"/>
    </bean>

    <bean id="pseudoDemandStatusJobListener1" class="com.uprr.app.csr.job.CustomJobListener">
    <property name="enaNotificationVO" ref="enaNotificationVO"/>
    </bean>


    <bean id="enaNotificationVO" class="com.uprr.app.csr.ena.vo.ENANotificationVO" singleton="false">
    <property name="fromAddress" value="PSD_STATUS_JOB@test.com"/>
    </bean>


    in the above configration pseudoDemandStatusJobListener and pseudoDemandStatusJobListener1 will have the same instance of enaNotificationVO or different ?

  2. #2
    Join Date
    Oct 2004
    Location
    Fareham, England
    Posts
    313

    Default

    Quote Originally Posted by miroconnect@yahoo.com View Post
    In the above configration pseudoDemandStatusJobListener and pseudoDemandStatusJobListener1 will have the same instance of enaNotificationVO or different?
    pseudoDemandStatusJobListener and pseudoDemandStatusJobListener1 will have distinct instances of enaNotificationVO.

Posting Permissions

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