没用过7,不过在6。1里很简单,只要写上启动类的名字(带包名,不带class结尾),然后把这个类加到weblogic的启动脚本中就可以了。7应该也是这样,具体你可以看看它带的宠物店的例子!

解决方案 »

  1.   

    在config.xml里可以有如下的配置:<ShutdownClass ClassName="com.bea.shutdown.stopPointBaseServer"
            Name="StopPointBaseServer"
            Notes="This class automatically stops PointBase when the server is shut down." Targets="petstoreServer"/>
        <StartupClass Arguments="port=7001"
            ClassName="com.bea.estore.startup.StartBrowser"
            FailureIsFatal="false" Name="StartBrowser"
            Notes="On Windows, this class automatically starts a browser after the server has finished booting." Targets="petstoreServer"/>