This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to separate out the application context

 
Joybrata Chakraborty
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

I have adoubt on spring frame work. In my application I want to separate out the application context file. So how ref a bean which in the different application context.

Joy
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joybrata Chakraborty wrote:Hi Friends

I have adoubt on spring frame work. In my application I want to separate out the application context file. So how ref a bean which in the different application context.

Joy


just ref it by name, and when you create your ApplicationContext object the constructor can also take a String array String[] where the array has each of your xml config files. Or your can have one config file <import resource="location of other xml file"/> import another config file, and have the main one as the single String in the ApplicationContext constructor.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic