File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Replacement for the T3StartupDef Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Replacement for the T3StartupDef Class" Watch "Replacement for the T3StartupDef Class" New topic
Author

Replacement for the T3StartupDef Class

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18836
    
  40

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: 18836
    
  40

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: 1364
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: 18836
    
  40

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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacement for the T3StartupDef Class