Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Startup Beans On Application Deployment

 
s penumudi
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I am working on an application that was developed using spring framework.The application server used was Weblogic 7.0.
When an application is deployed, I could see few beans loaded and executed. But I couldnot figure out where these beans are cofigured. I was trying to identify the entry point to the application when it is deployed.
I have checked weblogic application server startup classes and I see that no classes are configured as startupclasses. Hence my thinking is that these classes might be configured somewhere in the application. I am not sure where. I have gone through web.xml file and could find nothing.
I am not quite sure of spring framework configuration hence I was thinking of getting help from some one in finding the configuration for these files.

Your suggestion would be a great help to me.

Thank you in advance
[ March 29, 2005: Message edited by: s penumudi ]
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring applications are most often configured using xml files. For web apps, these will typically be found in WEB-INF with names like applicationContext.xml and xxxxx-servlet.xml (if SpringMVC was caused).
 
s penumudi
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,
I looked at XXX-servlet.xml file for the startup files.

I haven't seen any configuration that says these classes have to be loaded on deployment of the application.

Do you know how the startup classes are configured?

Thank you
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you're getting at.

In the Petclinic web.xml is a declaration of a servlet, org.springframework.web.context.ContextLoaderServlet, that takes care of loading the Spring application context files. Alternatively, a listener of type org.springframework.web.context.ContextLoaderListener could have been declared that does the same thing. Either method has the same result; the beans declared in the xml files (which are the application configuration files) are instantiated and wired up. This works the same way in any servlet container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic