School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,459 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,620 people online right now. Registration is fast and FREE... Join Now!




Spring Bean Importing

 

Spring Bean Importing, help with using beans I've imported

sbromley

9 Jun, 2009 - 07:27 AM
Post #1

New D.I.C Head
*

Joined: 20 May, 2009
Posts: 42



Thanked: 7 times
My Contributions
So I need to know if you can create a bean using a bean that I've already imported.

example:

CODE


<beans>
     <bean id="someBean" class="someClass"/>
</beans>



Then in another file

CODE


<beans>
    <import resource="thatFileFromAbove"/>

    <bean id="someOtherBean" class"someOtherClass"
             p:someValueToSet-ref="${someBean}/>
</beans>



This isn't exactly working. Any insight on what I'm doing wrong would be appreciated.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:12AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month