How to access beans from the applicationContext.xml in my service layer.

I am working on a Spring Web MVC project and that issue is that my service layer needs a URL, User ID and Password to do a web post to a server to save my data.  I dont want to hardcode the URL, User ID and password in the Java Code of the Service Layer so I would like to put them into the applicationContent.xml file but I dont know how to access them from the service layer.

Can someone please help me out with this..  example code would be great.


Question: Entire website in Silverlight 4. Practical or not?
Answer: Absolutely you can. And if your target users all have SL4 it might look very stylish. however many people who don't have SL will be put off, and many many picky technical people will be dismayed or refuse to go there.

If you had a site for skateboarders or graphic designers, then it would be something you could probably get away with... you do see sites like this for media-focused companies e.g sites for films or video games.

edit: reading the linked thread, I'd say most of the top-ranked answers still apply - they just apply a bit less these days. Corporate sites may block SL, grannies may not understand it, some people have slow web. But if you are aiming at young hip people it's feasible and the stylistic bonus could outweigh the problems for a minority of users. Weigh your target demographic carefully...