| Author |
Replacement for the T3StartupDef Class
|
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
This may be an obscure question... but I am hoping someone has the answer. I am currently porting a startup class from weblogic 8.1 to weblogic 9.0. Unfortunately, the T3StartupDef class, the class that startup classes extend from is deprecated in Weblogic 9.0. I am pretty sure this will still work, but I would like to do it the correct way. Can someone point me to a link on the correct way to develop startup classes for 9.0. When I do a search on BEA, all I get is a discussion on the T3StartupDef class, and how it works, and how it is deprecated... Thanks, Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
As an FYI... I did finish porting the startup class from WL 8.1 to WL 9.0. Most of the changes had to do with WL 9.0 support of JMX 1.2 instead of JMX 1.0 -- and Weblogic finally standardizing on JMX for their mbean server instead of going through their home interface. Unfortunately, I never did find the replacement for the startup class. I am now thinking that the concept of a startup class may be deprecated. Oh well... Henry
|
 |
sunitha reghu
Ranch Hand
Joined: Dec 12, 2002
Posts: 937
|
|
Henry, What is bea's response for the replacement of this class?
|
 |
Carol Enderlin
drifter
Ranch Hand
Joined: Oct 10, 2000
Posts: 1348
|
|
Go for the upgrade guide with any question like what happened to xyz that was in the previous version and is deprecated. On the main WLS 9.0 documentation page there is a link "Upgrade Guide". In the upgrade guide, looking for startup, there is a heading Deprecated Startup and Shutdown Classes that says, For more information, see "Programming Application Lifecycle Events" in Developing Applications with WebLogic Server at http://e-docs.bea.com/wls/docs90/programming/lifecycle.html. [ October 07, 2005: Message edited by: Carol Enderlin ]
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
Originally posted by Carol Enderlin: Go for the upgrade guide with any question like what happened to xyz that was in the previous version and is deprecated.
Thanks... I'll take a look. I can't believe I never seen this. I thought I searched all of the online docs at BEA. Henry
|
 |
Justin Ashworth
Greenhorn
Joined: Oct 20, 2005
Posts: 1
|
|
The only way I've found to implement startup classes in an application server-independent way is with a startup servlet. Write your startup class to have a main() method instead of implementing T3StartupDef and call that from a servlet's init() method. You may also want to do a clean shutdown in the sevlet's destroy() method. In your web.xml, set load-on-startup=1 for this servlet. You can load any configuration from a properties file in the CLASSPATH. Let me know if you have any questions. We currently have a JMX server running this way, and it works very well. Justin
|
 |
Shyam Ramath
Greenhorn
Joined: Jun 24, 2005
Posts: 21
|
|
|
Configure a startup servlet to accomplish this .
|
 |
 |
|
|
subject: Replacement for the T3StartupDef Class
|
|
|