如何将WSAD中配置好的服务器配置应用于WAS中?

wyfem 2003-12-16 04:18:07
在用WSAD开发的过程中,建立了一个测试环境的服务器,并配置了数据库的连接,但是我把项目导出为.ear后并安装到WAS上后运行却无法找到jndi,如何解决?
...全文
91 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wyfem 2003-12-19
  • 打赏
  • 举报
回复
难道就没有人知道吗?
wyfem 2003-12-17
  • 打赏
  • 举报
回复
我的意思是既然在WSAD中已经配置好了测试环境服务器,如何将这些配置直接应用于WAS上而不是全部重新配置一遍
sharpor 2003-12-17
  • 打赏
  • 举报
回复
我也想知道阿...
sh38du 2003-12-16
  • 打赏
  • 举报
回复
要在WAS中配JDBC Driver 和 datasource.
JDBC driver path
Select Environment (left side) and Managed WebSphere Variables.
Select DB2 JDBC DRIVER PATH.
Verify or enter the directory of the db2java.zip file (c:\SQLLIB\java).
Click OK.
Chapter 18. Deploying enterprise applications 619
JDBC driver
Select Resources (left side) and select JDBC Providers.
Select Node (should be preselected)
Click New (under JDBC Providers):
– Select DB2 JDBC Provider from the pull-down and click Apply.
– All the defaults should be fine. Check that the implementation class is
COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource. Note that the classpath
entry points to ${DB2_JDBC_DRIVER_PATH}/db2java.zip (Figure 18-11).
– Click Apply.

Data source
Under Additional Properties select Data Sources.
– Click New (Figure 18-12).
– Enter EJBBANK as name and jdbc/ejbbank as JNDI name (to match what
we defined in the EJB deployment descriptor).
620 WebSphere Studio Application Developer Version 5 Programming Guide
– Select Use this Data Source in container-managed persistence (CMP).
– The data source helper class should be filled in as
com.ibm.websphere.rsadapter.DB2DataStoreHelper.
– Click Apply.

至于jndi,如果你在wsad中配置成功了,则不需要在was中设置什么的。安装的时候一路
next就行了.
iceleighton 2003-12-16
  • 打赏
  • 举报
回复
当然了,ear里面不包括服务器端的配置,
在WAS里面配就好了!

2,633

社区成员

发帖
与我相关
我的任务
社区描述
WebSphere 是 IBM 的软件平台。它包含了编写、运行和监视全天候的工业强度的随需应变 Web 应用程序和跨平台、跨产品解决方案所需要的整个中间件基础设施,如服务器、服务和工具。
社区管理员
  • WebSphere社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧