What is the use of the setter dependency injection in Spring?

What is the use of the dependency setter injection ?
In a database driven app, I retrieve results, use the javabeans set methods to save stuff in javabeans and then call get on it.
What is the use of having something set externally from a xml already ?
Can someone provide an example when the setter injection can be used?
I wouldnt imaginge using it to get usernames, passwords, databaseurl because we use JNDI for that...
Is the dependency setter meant as something additional to web.xml so you dont have to get params from web.xml?

No, you would indicate in the XML that the Hibernate object and the TransactionFactory (I am being vague here) have a dependency. You then specify whether you want setter or constructor injection. When Spring creates the Hibernate Object, it will attempt to also create a TransactionFactory and pass that to the Hibernate Object's setter. "Auto-wiring" them together for you.
- Saish

Similar Messages

  • What is the setting- Pop up window 'Valuation' appears in Results Recording

    Hi,
    When i am doing Results recording in qa32, after processing all characteristics the status of all characteristics appears '5' but while saving it gives a pop-up window named 'valuation' where under 'valuate inspection point' sub screen field 'valuation' with entry 'Accept' in grey mode appears. Also a tab named 'valuation' appears on the same pop-up window with pencil symbol through with UD can be made in RR only.
    What is the setting because of which this pop up window comes while saving the results recording.
    Thanks in advance.
    Regards,
    Abhijit.

    HI,
    I am using insp. point 200 which have default valuse in valuation tab. In functional module tab no FM are attached.
    What are the setting required tobe changed in i want to use Insp. Point and do not want the Pop up window of Valuation.
    In some other cases i am using point and pop up doesn't come.
    Abhi.

  • PrCS5.5: what are the setting to produce a Blu-Ray disk with Encore CS5

    what are the setting for a sequence, media encoder, & Encore to produce a Blue-Ray disk.
    At present , I have tried several different combinations, but Encore just hinges

    sorry  i forgot the link...
    http://www.precomposed.com/tutorials/04_bluray_subtitles/
    at the end of tutorial , you find instructions for create a right iso image.
    Another thing. If you go to create a DVD Dual layer, Imgburn offers a excelent tool to set layer break. I prefer this option,and not Encore automatic option.
    You can check other tutorial
    How to write a Blu-ray Video disc using ImgBurn
    http://forum.imgburn.com/index.php?s=a3f19e39fa1a21b69df15414dc8b7a90&showtopic=9512

  • What is the setting to fit in a DVD5 (single layer)6 hours of video?

    What is the setting in Compressor to fit in a DVD5 (single layer)6 hours of video?
    No matter the quality in video or audio, just it has to be the same frame rate than the original 29.97 fps.
    I've tried different settings but as mpg2 (2mbp) just allow me about 4 hours with AC3 audio, and as MPG1 fits the amount of time I need, but Toast recompress it.
    Thanks for the feedback
    R

    Thanks for the support.
    The video material is to review and correct script translations (Korean-spanish audio dubbing) that's why I don't need the most quality i cant get. I need random access to the material that's why I can't use a VHS in LP mode.
    And in Fact I use a very handy external DVD recorder and yes it allows more than 6 hours in a DVD+R. But I stopped doing this workflow because You have to be checking the transfer because sometimes the Final Cut drops frames in playback.(I screwed 4 hours of work when it recorded about an hour of a single frame dropped in my lunchtime)
    But I wonder if there is a workaround with compressor to do this task, i think not.
    Cleaner allowed me to do the mpg2 at the data rate i Needed. And finish the task with Toast

  • What is the difference between struts and spring framework

    What is the difference between struts and spring framework
    Thanks in advance

    Struts is nothing more than a web MVC framework.
    Spring is lots more.
    Spring has its own web MVC frameworks for both servlets and portlets. I think the Struts web MVC design is inferior to Spring's.
    It also has JDBC and ORM support, message driven POJOs, an IoC engine, aspects, and lots more.
    Struts would be a minor subset of Spring.
    %

  • While creating partner profile, if the partner type is u0093LIu0094 what r the sett

    While creating partner profile, if the partner type is “LI” what r the settings we need to configure?

    Hi Chiru,
    For a IDOC to File scenario, just follow these steps:-
    SLD-
    1) Create a Product/Software Component
    2) Technical System pointing to R/3 system
    3) Business System for the above technical system
    In the Repository
    1) Import the Software component created in the sld
    2) Create a namespace,
    3) import the idoc and then create sender data type/message type etc and mapping
    4) Mapping Rules is depends on the requirement
    In the Directory
    1) Create a Scenario /import the business system
    2) Create Receiver/Interface determination
    3) Create communication channels for sender and receiver
    4) Sender Agreeement and Receiver Agreement.
    Then the file adapter configuration is depend on the input file format.
    Also you need to have Logical destionation created in the XI , and the IDX1 entry
    In R/3 Port, Partner profiles etc should be created
    Have a look into this document~
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    In addition do the following in XI:
    1. SM 59 - Create RFC destination pointing to R3.
    2. IDX1 - Create a port for R3
    3. IDX2 - Import IDOC metadata.
    I hope this provides you a solution.
    Regards.
    Praveen

  • How can i get my phone to read my text what is the setting for that

    im trying to figure out the setting where u can turn on when a text comes in I want it read to me my friend has a speak button

    settings>general>accessibility

  • What does the setting 'use system proxy setting' mean?

    I am using a proxy server that requires my email address which I need to change. I can't figure out how to change the proxy server settings. Under preferences, network, settings, the checked box is 'use system proxy settings' -- I don't know what this means or how to see what the proxy setting is and possibly change it.
    Thank you

    If the default "Use system proxy settings" is selected then Firefox will try to query the OS to find which settings to use.<br />
    If you want to use a specific proxy in Firefox then you can select use "Manual proxy configuration" and enter the URL and port number that you want to use.
    * http://kb.mozillazine.org/network.proxy.type
    * http://kb.mozillazine.org/Network.proxy.%28protocol%29
    * http://kb.mozillazine.org/Network.proxy.%28protocol%29_port

  • What are the setting in order to use headset with vontage softphone, caller can't hear me

    have dv7 entertainment notebook with IDT audio. When I use vontage softphone caller can not hear me but I can hear them. Is there some default setting for the notebook that I am missing or is it a vontage issue?
    windows 7
    HP Pavilion dv7 Notebook PC
    Intel i5
    64 bit os

    I had the same issue. It was not being muted by my face (although sometimes that would happen). For me you could actually tap on the back of the phone and get it to work...but only for a short period of time.
    I went through all the normal trouble shooting items... rebooting... restoring...etc. At the end of the day I took it into Apple store. They said they've had other people with the same issue and the best bet is to replace the phone while it's still under warranty. You have one year from purchase date unless you bought the extended Applecare.
    I wouldn't bother with too much more trouble shooting...not since this is a known issue that others have had happen.

  • What is the set-up when transfer files through target disk mode

    I'm a bit confused on how to set up the macs to do a file transer in target disk mode.  I am transferring files from an imac to a macbook pro.  I have the cable 6pin to 9pin.  Now what I can't remember (apple.com instructions is what confused me) is on which computer do I hold down the  'T' on start up?  Is it the computer I am transferring the files to? ( in this case the macbook pro).  I use to do this fairly often, but not recently, and I have forgotten.  Any help would be greatly appreciated. 

    Transferring files between two computers using FireWire - Apple

  • What does the setting "auto increment column templates"

    I have noticed that there is now a setting "auto increment column templates" but I cannot find out what this setting does.
    There are no sequences generated nor triggers.
    Version 3.0.
    Thanks, Joep

    There are no sequences generated nor triggersYou need to set column as "auto increment". Then sequence and trigger will be generated for Oracle.
    You can set template for generated sequences and triggers and can override these settings at column level setting explicitly the name of sequence and trigger.
    The sequence and related trigger are not created as objects in physical model, however if there are such objects defined then definition from physical model is used for generated DDL.
    Philip

  • After upgrading to version 4.0 my email money bank transfers do not work. Bank says it is browser issue but what is the setting that needs to be changed?

    I do a great deal of online banking. Recently issue an email money transfer from an account with one bank to an account with a different bank. Have done this regularly in the past with no problems. The transfer could not be completed. After consulting the IT people at the bank I was advised the problem is with the browser, but they were not certain of what specifically is the problem or how to fix it. They advised I try to do the deposit using another browser. Went to Chrome, accessed the email transfer info and the deposits went through normally. I assume the problem lies somewhere in the security settings with Firefox, but could not find any information to help me.

    I too , have had my phone crash after installing the iphone 4 update. It would not update and connect to itunes after installing it. My phone was not accesable at all.
    I took it to the apple store in London and for an hour and a half waited for them to resolve the issue.
    They seemed far more interested in selling their new iphone 4 than helping existing customers.
    I was told it was a physical connection problem cord. I knew this was not the case and as I had my laptop with me proved it wasn't.
    After 2 hours they replaced the handset and I am now in the process of restoring the backup.
    I strongly advise not to install the new software.
    GET YOUR ACT TOGETHER APPLE!!!!!

  • What are the setting for Save button for saving plan data in WAD template

    Hi,
    i created SAVE button in Webtemplate for saving plan data.But this button is not
    active.is there any setting for this?
    thanks in advance
    chandu

    Hi Chandu,
    The settings to Configure the  Save function.
    Right click the Button Group Item ® Properties ®  * Button    ® 
    Type Caption  ‘Save’ ® Command    ® Select ‘All Commands’ Tab ® 
    De-select ‘Execute Planning Function’ and then select checkbox ‘Save
    Changed Data’ ® Double click on ‘Save Changed Data’ ® OK ® OK ® Save your template.
    *pls assign points,if info is useful*
    Regards
    CSM Reddy

  • What are the setting for a p1102w printer does Airport Extreme have to have so the printer can find it?

    I recently bought an Airport Extreme and a HP P1102W printer.  The printer can not find the Airport Extreme network, even after turning off the network security.   Is there a setting that needs to change so the printer will see the network?  I am using a MacBook Pro.

    I only have an iPad. I consulted HP Product Support and they told me to activate WPS on my E1200 router. The printer then connected to the router and obtained an IPv4 address. But it changed the netwrok name and disconnected my iPad. Initially my network had a default name Ciscoxxxxx but now it created a new network Cisco_WPS_nnnn. I tried to join this network but it was asking me for a 8-character password that I don't know. Linksys support asked me to upgrade to EA4500 router. But since i have Apple TV, iPad and iPhone, I thought I would buy an Apple router instead. But before I jump in this direction, I want to make sure that it will work for me. I know I can return this product but I don't want to turn this into a major project. Thanks.

  • HT5361 When I send a message, a copy appears in my inbox.  What is the setting to correct this?

    when I send a message, a copy is sent to my inbox.  How do I remedy this?
    cathyfrommt

    Hi,
    You have categorised this as both Messages (App) and Mail (App) and I am not sure which you are using.
    The Messages App does not normally send a Copy to the Mail app.
    Mail however does has an "Automatically CC: myself" setting in the Preferences > Composing.
    9:34 pm      Friday; April 18, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for