Can anybody please tell me how can i load this beanrefContext.xml into my Application .
Thanks in advance.
What is in that file? Is that the file that you use to get Beans into EJBs? I forgot?
Where do you want that xml loaded. In the ApplicationContext when you create it? Then isn't it just passed as a parameter to the constructor of ApplicationContext, or if in a web environment, then added as a context-param for the ContextLoaderListener?
what i want to ask is these above two steps are sufficient ?? so that with the help of predefined annotated tags we can gain access to the resources defined inside the applicationcontext.xml
Those two lines loads an ApplicationContext into the WebContext so that your Web apps/Controllers have access to beans defined in your applicationContext.xml
But what do you have in
beanrefContext.xml
That you mentioned. I believe that is the name of the file that you use when you want an EJB to have access to an ApplicationContext object.
Mark
RaviNada Kiran
Ranch Hand
Joined: Jan 30, 2009
Posts: 528
posted
0
Thanks Mark
This beanref ml file would be loading applicationcontext.xml file in its constructor.