J2EE server Listen Port: = 1049 Naming service started: :1050 Published the configuration object ... Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape DB;create=true Web service started: 9191 Web service started: 8000 Web service started: 7000 J2EE server startup complete. 启动成功!在以后的运行中不要关闭该窗口 在IE浏览器中访问HTTP://localhost:8000 可以看到默认的主页信息。
public class ConverterEJB implements SessionBean {
public double dollarToYen(double dollars) {
return dollars * 121.6000; }
public double yenToEuro(double yen) {
return yen * 0.0077; }
public ConverterEJB() {} public void ejbCreate() {} public void ejbRemove() {} public void ejbActivate() {} public void ejbPassivate() {} public void setSessionContext(SessionContext sc) {}
3、启动Application Deployment Tool 布署工具 再打开一个DOS窗口,在C:\J2EE\BIN 目录下运行DEPLOYTOOL ,出现下列信息: Deployment tool version 1.2.1. Type deploytool -help for command line options. S tarting... 启动成功!在以后的运行中不要关闭该窗口 启动成功后出现窗口界面,该工具比较消耗资源,假如你的系统配置不高,运行速度较慢。