Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

start up class upon ear deployment weblogic

 
tapeshwar sharma
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've been given a task to call a startup class when a application ear is delpoyed.
However, there are following constraints :
1) Do not modify the config.xml.The startup class provided by administrative console/config.xml will not serve.
2)There should be no need to create a war file.Meaning that the old method of using Servlet <load-on-start-up> is also prohibited.

Again, no T3StartupDef, no jar files in the classpath, and no servlet or war files.
Phew!..can't some real Java Guru read this topic and say whether its possible or not ?
regards,
Prashant
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are working with EJB's then you have a way with EJB's to be created while application is deployed. So can you try think some thing in that way
 
Rejeev Divakaran
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WebLogic provides application lifecycle listeners which are configured in weblogic-application.xml. Using application lifecycle listener has callback methods for application startup. Please refer the following link for details.
http://edocs.bea.com/wls/docs90/programming/lifecycle.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic