File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes start up class upon ear deployment weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "start up class upon ear deployment weblogic" Watch "start up class upon ear deployment weblogic" New topic
Author

start up class upon ear deployment weblogic

tapeshwar sharma
Ranch Hand

Joined: Mar 10, 2006
Posts: 245
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

Joined: Dec 21, 2005
Posts: 57
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

Joined: Aug 12, 2007
Posts: 27
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


Regards,<br />Rejeev<br />Blog: <a href="http://rejeev.blogspot.com/" target="_blank" rel="nofollow">http://rejeev.blogspot.com/</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: start up class upon ear deployment weblogic