没有合适的资源?快使用搜索试试~ 我知道了~
jboss-5.1.0.GA Getting_Started_Guide.pdf
需积分: 3 10 下载量 187 浏览量
2010-01-08
11:33:04
上传
评论
收藏 472KB PDF 举报
温馨提示
试读
72页
jboss-5.1.0.GA Getting_Started_Guide.pdf,英文的,不过很有用
资源推荐
资源详情
资源评论
JBoss Enterprise
Application Platform 5.0
Getting Started Guide
for Use with JBoss Enterprise Application Platform 5.0
JBoss Community
Getting Started Guide
JBoss Enterprise Application Platform 5.0 Getting Started Guide
for Use with JBoss Enterprise Application Platform 5.0
Edition 1.0
Author JBoss Community
Editor JBoss Community
Editor Isaac Rooskov
Copyright © 2009 Red Hat, Inc
Copyright © 2009 Red Hat, Inc. This material may only be distributed subject to the terms and
conditions set forth in the Open Publication License, V1.0, (the latest version is presently available at
http://www.opencontent.org/openpub/).
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity
Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
All other trademarks are the property of their respective owners.
1801 Varsity Drive
Raleigh, NC 27606-2072 USA
Phone: +1 919 754 3700
Phone: 888 733 4281
Fax: +1 919 754 3701
PO Box 13588 Research Triangle Park, NC 27709 USA
This Getting Started Guide documents relevant information regarding the initial use of the JBoss
Enterprise Application Platform
iii
Introduction v
1. Help Contribute ............................................................................................................... v
1. The JBoss Server - A Quick Tour 1
1.1. Server Structure ........................................................................................................... 1
1.2. Server Configurations ................................................................................................... 1
1.2.1. Server Directory Structure .................................................................................. 3
1.2.2. Server Configuration Directory Structure ............................................................. 5
1.2.3. The default Server Profile File Set .................................................................. 7
1.2.4. The all Server Profile File Set ........................................................................ 14
1.2.5. EJB3 Services ................................................................................................ 14
1.3. Starting and Stopping the Server ................................................................................ 15
1.3.1. Start the Server ............................................................................................... 15
1.3.2. Start the Server With Alternate Configuration ..................................................... 16
1.3.3. Using run.sh .................................................................................................... 17
1.3.4. Stopping the Server ......................................................................................... 17
1.3.5. Running as a Service under Microsoft Windows ............................................... 18
1.4. The JMX Console ...................................................................................................... 18
1.5. The JNDIView Service ................................................................................................ 19
1.6. Hot-deployment of services in JBoss ........................................................................... 21
1.6.1. Hot-deployment configurations .......................................................................... 21
1.6.2. Adding a custom deploy folder ......................................................................... 22
1.7. Basic Configuration Issues .......................................................................................... 23
1.7.1. Setting your application as the default application on the server .......................... 23
1.7.2. Bootstrap Configuration .................................................................................... 24
1.7.3. Legacy Core Services ...................................................................................... 24
1.7.4. Logging Service ............................................................................................... 25
1.7.5. Security Service .............................................................................................. 27
1.7.6. Additional Services .......................................................................................... 28
1.8. The Service Binding Manager ..................................................................................... 29
2. EJB3 Caveats in JBoss Enterprise Application Platform 5.0 31
2.1. Unimplemented features ............................................................................................ 31
2.2. Referencing EJB3 Session Beans from non-EJB3 Beans ............................................. 31
3. Sample Applications 33
4. Sample JSF-EJB3 Application 35
4.1. Data Model ................................................................................................................ 35
4.2. JSF Web Pages ......................................................................................................... 36
4.3. EJB3 Session Beans .................................................................................................. 38
4.4. Configuration and Packaging ...................................................................................... 40
4.4.1. Building The Application ................................................................................... 40
4.4.2. Configuration Files ........................................................................................... 41
4.5. The Database ............................................................................................................ 43
4.5.1. Creating the Database Schema ........................................................................ 43
4.5.2. The HSQL Database Manager Tool .................................................................. 43
4.6. Deploying the Application ............................................................................................ 43
5. Using Seam 47
5.1. Data Model ............................................................................................................... 47
5.2. JSF Web Pages: index.xhtml and create.xhtml ............................................................ 48
5.3. Data Access using a Session Bean ............................................................................ 50
5.4. JSF Web Pages - todos.xhtml and edit.xhtml .............................................................. 51
Getting Started Guide
iv
5.5. Building The Application ............................................................................................. 53
5.6. Xml Files .................................................................................................................. 54
5.7. Further Information .................................................................................................... 55
6. Using other Databases 57
6.1. DataSource Configuration Files ................................................................................... 57
6.2. Using MySQL as the Default DataSource .................................................................... 57
6.2.1. Creating a Database and User ......................................................................... 58
6.2.2. Installing the JDBC Driver and Deploying the datasource ................................... 59
6.2.3. Testing the MySQL DataSource ........................................................................ 59
6.3. Configuring a datasource for Oracle DB ...................................................................... 59
6.3.1. Installing the JDBC Driver and Deploying the DataSource .................................. 60
6.3.2. Testing the Oracle DataSource ......................................................................... 60
6.4. Configuring a datasource for Microsoft SQL Server 200x .............................................. 61
6.4.1. Installing the JDBC Driver and Deploying the DataSource .................................. 61
6.5. Configuring JBoss Messaging Persistence Manager ..................................................... 61
6.6. Creating a JDBC client ............................................................................................... 62
A. Revision History 65
v
Introduction
JBoss Enterprise Application Platform is the open source implementation of the Java EE suite of
services. It comprises a set of offerings for enterprise customers who are looking for preconfigured
profiles of JBoss Enterprise Middleware components that have been tested and certified together
to provide an integrated experience. It's easy-to-use server architecture and high flexibility makes
JBoss the ideal choice for users just starting out with J2EE, as well as senior architects looking for a
customizable middleware platform.
Because it is Java-based, JBoss Enterprise Application Platform is cross-platform, easy to install
and use on any operating system that supports Java. The readily available source code is a powerful
learning tool to debug the server and understand it. It also gives you the flexibility to create customized
versions for your personal or business use.
1. Help Contribute
If you find a typographical error or if you have thought of a way to make this manual better, submit
a report in JIRA: http://jira.jboss.com against the product JBoss Enterprise Application Platform and
component Documentation.
If you have a suggestion for improving the documentation, try to be as specific as possible when
describing it. If you have found an error, please include the section number and some of the
surrounding text so we can find it easily.
剩余71页未读,继续阅读
资源评论
guoweia19850
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功