startup.java.svn-base
来自「Master EJB 2.0 源码,该源码是在weblogic环境下部署的」· SVN-BASE 代码 · 共 31 行
SVN-BASE
31 行
import javax.naming.*;
/**
* A helper class which starts our RMI-IIOP server
*/
public class Startup {
/**
* Our main() method starts things up
*/
public static void main(String args[]) throws Exception {
/*
* Start up our PKGenerator remote object. It will
* automatically export itself.
*/
PKGenerator generator = new PKGenerator();
/*
* Bind our PKGenerator remote object to the JNDI tree
*/
Context ctx = new InitialContext(System.getProperties());
ctx.rebind("PKGenerator", generator);
System.out.println("PKGenerator bound to JNDI tree.");
synchronized (generator) {
generator.wait();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?