aspose file tools*
The moose likes Spring and the fly likes How to separate out the application context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to separate out the application context" Watch "How to separate out the application context" New topic
Author

How to separate out the application context

Joybrata Chakraborty
Greenhorn

Joined: Nov 27, 2006
Posts: 29
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


Thanks in advance
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to separate out the application context
 
Similar Threads
Login Screen Customization
Getting Tomcat 4.1.18 to recoginze my context
AC and SC
Spring - Multiple IoC Containers with Singleton Bean in a JVM
variable doesn't increment