J2EE tutorial 实例安装
本节介绍各个代表性实例的安装,原英文介绍文档位于以下路径:J2EE1.4/samples/docs/list.html
Duke’s Bookstore
1 编译。
切换到J2EE1.4\samples\webapps\bookstore\bookstore1\src
1) 执行 asant clean.,这是清除
2) 执行 asant core,这是编译
2 启动PointBase数据库,并准备数据
1) 执行<pointbase_install_dir>/tools/serveroption/startserver.bat 脚本
2) 启动Server
3) 切换到J2EE1.4\samples\webapps\bookstore\bookstore1\src,运行:
asant deploy
3 运行
在浏览器键入::
4 生成javadoc
在J2EE1.4\samples\webapps\bookstore\bookstore1\src下运行:
asant javadocs
Stateless SessionBean
Location: J2EE1.4\samples/ejb/stateless/simple/src
Stateful SessionBean-CartBean
Location: D:\Devs\J2EE1.4\samples\ejb\stateful\simple\src
Run:
cd <install_dir>/domains/<domain_name>/applications/j2ee-apps/stateful-simple/
run : appclient -client stateful-simpleClient.jar -name CartClient –textauth
CMP Customer
Location: D:\Devs\J2EE1.4\samples\ejb\cmp\cmpcustomer\src
1 在控制台建立jdbc连接资源,名称为:jdbc/cmpcustomer
2 创建连接池:cmpcustomer-pool
Run: http://localhost:8080/customer/
StorageBin (bmp-Simple) Application
Location: D:\Devs\J2EE1.4\samples\ejb\bmp\simple\src
How to Run:
In: D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\bmp-simple
Run:
appclient -client bmp-simpleClient.jar -name StorageBinClient -textauth
MDB
Location: D:\Devs\J2EE1.4\samples\ejb\mdb\simple\src
定义资源
1 登陆Server,在Java Message Service 处点击Connection Factories,然后选择New
2 输入:
JNDI-Name: jms/MyQcf
Type: javax.jms.QueueConnectionFactory
Resource: Select Enabled checkbox
3 点击 Destination Resources 点 New,输入:
JNDI-Name: jms/MyQueue
Type: javax.jms.Queue
Resource: Select Enabled checkbox
4 运行:
in :D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\mdb-simple
run
appclient -client mdb-simpleClient.jar -name SimpleMessageClient –textauth -xml D:\Devs\J2EE1.4\domains\domain1\config\sun-acc.xml
已安装实例和运行路径如下:
Name | URL |
Duke’s Bookstore | http://localhost:8080/bookstore1/enter |
Stateless SessionBean | http://localhost:8080/helloworld |
Stateful | D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\stateful-simple |
| appclient -client stateful-simpleClient.jar -name CartClient –textauth |
CMP | http://localhost:8080/customer/ |
BMP | D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\bmp-simple |
| appclient -client bmp-simpleClient.jar -name StorageBinClient -textauth |
MDB | D:\Devs\J2EE1.4\domains\domain1\applications\j2ee-apps\mdb-simple |
| appclient -client mdb-simpleClient.jar -name SimpleMessageClient –textauth -xml D:\Devs\J2EE1.4\domains\domain1\config\sun-acc.xml |
- 最新文章
- 开发SessionBean[05-16]
- 对Reader进行token的类,可以访入多个split进行..[05-16]
- 配置Eclpise tomcat并实现JSP的编写与部署[05-16]
- 穷人的通用OLAP方案III--JPivot表现层[05-16]
- J2EE应用中与Oracle数据库的连接[05-16]
- 自动生成你的程序开发文档[05-16]
- 相关文章
- J2EE应用中与Oracle数据库的连接[05-16]
- 分页显示问题的解决方法(jsp,sqlserver,mysq..[05-16]
- JCreator 确实挺不错[05-16]
- BaseSimpleTagSupport,BaseTagSu..[05-16]
- [Boss Connector笔记]第2章 XML-RPC的..[05-16]
- [Boss Connector笔记]第3章 JMX-MBea..[05-16]
