文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 专题 求职 读书
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» Java » J2EE tutorial 实例安装       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: [转载] J2EE tutorial 实例安装  ( 查看:331  回复:0 )   
 
rfv345
新新人类  点击可查看详细



帖子 36
精华 0
无忧币 190
积分 180
阅读权限 20
注册日期 2007-8-20
最后登录 2007-8-24 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2007-8-23 09:39   标题:J2EE tutorial 实例安装
上一帖 |
本节介绍各个代表性实例的安装,原英文介绍文档位于以下路径:J2EE1.4/samples/docs/list.html

Duke’s Bookstore

1 编译。

切换到J2EE1.4 amples\webapps\bookstore\bookstore1 rc

1) 执行 asant clean.,这是清除

2) 执行 asant core,这是编译
2 启动PointBase数据库,并准备数据
1) 执行<pointbase_install_dir>/tools/serveroption/startserver.bat 脚本

2) 启动Server

3) 切换到J2EE1.4 amples\webapps\bookstore\bookstore1 rc,运行:

asant deploy

3 运行

在浏览器键入:http://<host>:<port>/bookstore1/enter

4 生成javadoc

在J2EE1.4 amples\webapps\bookstore\bookstore1 rc下运行:

asant javadocs

Stateless SessionBean

Location: J2EE1.4 amples/ejb/stateless/simple/src

Stateful SessionBean-CartBean

Location: D:\Devs\J2EE1.4 amples\ejb tateful imple rc

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 amples\ejb\cmp\cmpcustomer rc

1 在控制台建立jdbc连接资源,名称为:jdbc/cmpcustomer

2 创建连接池:cmpcustomer-pool

Run: http://localhost:8080/customer/

StorageBin (bmp-Simple) Application

Location: D:\Devs\J2EE1.4 amples\ejb\bmp imple rc
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 amples\ejb\mdb imple rc
定义资源

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 un-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 tateful-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 un-acc.xml

[ 本帖最后由 rfv345 于 2007-8-23 14:39 编辑 ]



网络虽虚拟,技术无边界,来看看大家“真面目”!
2007-8-23 09:391楼
[ 顶部 ]
     
论坛跳转:  

| | |

标记已读 · 删除论坛Cookies · 文本版 · WAP
 
| 诚征版主 | 版主堂 | 意见建议 | 大史记 | 论坛地图
Copyright©2005-2008 51CTO.COM  Powered by Discuz!
本论坛言论纯属发布者个人意见,不代表51CTO网站立场!如有疑义,请与管理员联系。
京ICP备05051492号