Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Replacement for the T3StartupDef Class

 
Henry Wong
author
Marshal
Pie
Posts: 21115
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Henry Wong
author
Marshal
Pie
Posts: 21115
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry,
What is bea's response for the replacement of this class?
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21115
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Configure a startup servlet to accomplish this .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic