关于JBoss下的数据源配置, 在jboss下有docs\examples\jca目录下有相应数据库链接信息的配置文档,拿出来改一下,然后COPY到你的JBOSS中的server\default\deploy下面,从后台看打出的JNDI名称 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 jboss自带了例子的,你把它的对应的xml文件改改就ok了 从后台看打出的JNDI名称是什么意思? 放在ejb-jar.xml和jboss.xml中。就象下面这样(来自xpetstore):ejb-jar.xml中 <resource-ref > <res-ref-name>jdbc/xpetstore</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>jboss.xml中 <resource-ref> <res-ref-name>jdbc/xpetstore</res-ref-name> <jndi-name>java:/xpetstoreDS</jndi-name> </resource-ref> 忘了一点,使用它的方法是这样的:DataSource ds = ( DataSource ) ic.lookup( "java:comp/env/jdbc/xpetstore"); 看看这里的对应文档,应该就没问题了。http://www.huihoo.org/jboss/index.html hibernate search 搜索与用hql模糊查询的问题 hql语句 java实现分步骤录入功能 orcale的登录问题 关于保存网页为word的问题 JAVA有关定时任务的操作 tomcat5.0+lomboz3.0+jdk1.5+eclipse3.0利用lomboz调试jsp中的问题!请教高手哥哥 在win98下安装和配置Tomcat5.0的问题~` *.war文件是作什么的? 如何在J2EE(j2sdkee1.3)下配置一个Oracle数据源,高分相求(如若不够,可以再给)! 一个简单实体bean的问题 WebLogic配置ConnectionPool就这么难啊
是什么意思?
ejb-jar.xml中 <resource-ref >
<res-ref-name>jdbc/xpetstore</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>jboss.xml中 <resource-ref>
<res-ref-name>jdbc/xpetstore</res-ref-name>
<jndi-name>java:/xpetstoreDS</jndi-name>
</resource-ref>
http://www.huihoo.org/jboss/index.html