Setup JBoss
===========
Download the JBoss Application Server 4.0.3 installer from http://www.jboss.com/products/jbossas/downloads.
Run the installer and when prompted select the ejb3 configuration. Accept all the other default settings.
Download Jboss AOP 1.3.4 http://www.jboss.com/products/list/downloads#aop and extract it to the directory
of your choosing.
To configure JBoss for AOP 1.3.4 follow these steps:
1) Delete the $JBOSS_HOME/server/default/deploy/jboss-aop.deployer directory
2) Copy $JBOSS_AOP_HOME/jboss-40-install/jboss-aop-jdk50.deployer to $JBOSS_HOME/server/default/deploy
3) Copy the $JBOSS_AOP_HOME/lib-50/pluggable-instrumentor.jar to $JBOSS_HOME/bin
4) Edit the $JBOSS_HOME/bin/run.bat (or .sh) change:
# Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME"
to
# Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME -javaagent:pluggable-instrumentor.jar"
5) Edit $JBOSS_HOME/server/default/deploy/jboss-aop-jdk50.deployer/META-INF/jboss-service.xml.
Change EnableLoadtimeWeaving to true
Change AspectManagerService to AspectManagerServiceJDK5
Build and Deploy
================
In order to build this sample application download and install Maven 2
from the following URL:
http://maven.apache.org/download.html
1) Run "mvn clean:clean install" from the top directory of the sample code
distribution to compile and build the application. The resulting
EAR file can be found in the music-store-deploy/target directory.
2) Run jboss using the command './run.sh -c default'
3) Copy the music-store-deploy.ear file to $JBOSS_HOME/server/default/deploy
4) Open your web browser and navigate to http://localhost:8080/music-store-web
没有合适的资源?快使用搜索试试~ 我知道了~
用EJB 3.zip
共62个文件
java:25个
xml:9个
jsp:7个
需积分: 3 22 下载量 13 浏览量
2007-09-06
10:09:23
上传
评论
收藏 667KB ZIP 举报
温馨提示
用EJB 3.zip 用EJB 3.zip 用EJB 3.zip
资源推荐
资源详情
资源评论
收起资源包目录
EJB 3.zip (62个子文件)
天极软件www.mydown.com.txt 2KB
readme.txt 2KB
music-store
pom.xml 3KB
music-store-domain
.project 1003B
pom.xml 1KB
.cvsignore 20B
.wtpmodules 318B
src
test
java
com
devx
musicstore
MusicStoreTest.java 909B
main
java
com
devx
musicstore
dao
MusicStoreDAO.java 4KB
OrderProcessorDAO.java 2KB
IMusicStoreDAO.java 405B
IOrderProcessorDAO.java 166B
OrderProcessor.java 1KB
ShoppingCart.java 746B
MusicStore.java 1KB
domain
Album.java 491B
Order.java 699B
Video.java 501B
Genre.java 2KB
Product.java 1KB
Artist.java 1KB
IShoppingCart.java 356B
IMusicStore.java 451B
.classpath 691B
lib
jboss-ejb3x.jar 18KB
music-store-aop
.project 1000B
pom.xml 730B
.cvsignore 8B
.wtpmodules 376B
src
main
resources
META-INF
jboss-aop.xml 255B
java
com
devx
jboss
EJB3InjectionAspect.java 1KB
EJB3ServiceLocator.java 863B
.classpath 507B
lib
jboss-aop-jdk50.jar 650KB
music-store-deploy
.project 1KB
pom.xml 2KB
.cvsignore 8B
.wtpmodules 254B
.classpath 271B
music-store-web
.project 1KB
pom.xml 2KB
.cvsignore 8B
.wtpmodules 5KB
src
main
java
com
devx
musicstore
web
action
ListAlbumsAction.java 784B
AddProductToCartAction.java 838B
AbstractStoreAction.java 2KB
ListArtistsAction.java 1KB
DisplayStoreFrontAction.java 252B
CheckOutAction.java 312B
UserContext.java 389B
webapp
WEB-INF
tiles-defs.xml 785B
web.xml 818B
struts-config.xml 1KB
jsp
layout.jsp 1KB
feature.jsp 88B
artistList.jsp 430B
albumList.jsp 595B
genre.jsp 418B
cart.jsp 461B
index.jsp 45B
.classpath 2KB
lib
jboss-ejb3x.jar 18KB
共 62 条
- 1
资源评论
chenhongxin
- 粉丝: 213
- 资源: 97
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功