有谁测试过Jbuilder7中EJB例子中ESiteWL程序???(100分)

  • 主题发起人 jindinghai
  • 开始时间
J

jindinghai

Unregistered / Unconfirmed
GUEST, unregistred user!
borland公司提供的帮助文档如下
Project Notes
--------------------------------------------------------------------------------
Project: ESite for EJB 2.0 Weblogic
Author: JBuilder Group
Company: Borland.com
Description: A simple shopping cart example using 2.0 EJB's, JSP's, servlets, and DataExpress
--------------------------------------------------------------------------------
To run
Weblogic 6.x must be installed and setup for JBuilder in order to build this sample. If you have notdo
ne so, install Weblogic (recommended Weblogic 7). then
in JBuilder, select Tools | Configure Servers..., select Weblogic 6.x. Set the values of the Home directory on the General tab and BEA Home directory and the administrative password on the Custom tab.
If you configured Weblogic 6.x prior to opening the sample project, refresh project properties from your server configuration.
Click on Project | Project Properties.
Click on the Servers tab.
Click on the ellipsis (...) button next to the server select in the Single server... dropdo
wn list
Click <OK> on the Configure Servers dialog
Click <OK> on the Project Properties dialog
Create a WebLogic transactional data source named ESiteSource. You will need to check your WebLogicdo
cumentation on how to create a data source. You will need the following settings
The database URL should be of the following format: jdbc:borland:dslocal:/jbuilder7/samples/Ejb/db/esite.jds, ensuring that you have the correct path to esite.jds.
The driver will be com.borland.datastore.jdbc.DataStoreDriver.
This JDataStore is not password protected, but you must still specify a user;
any user willdo
, e.g., user=Frank;password=
Launch the application server by clicking on the littledo
wn-arrow on the toolbar next to the green arrow. In the dropdo
wn select Server. The server should start successfully.
Deploy the EJB module. Right click on the EJB module esite in the project view and select the context menu option Deploy Options | Deploy
After the archive has been loaded successfully, click on the link below to launch the web application :
http://localhost:7001/bookstore/welcome.jsp
Note : If the server name or port number that you use are different, please modify the URL to launch the web application.
If you wish, you can also run the Java Client. Repeat the same process as above, except select Java Client
Using a QueryProvider
By default, this program uses an EntityBeanProvider for all DataSets. If you wish, you can instead use a QueryProvider for the Inventory DataSet. A QueryProvider can be useful for retrieving large amounts of data from a database without having to create an entity bean for every row of data. The Inventory DataSet will still use an EntityBeanResolver, so that updates are stilldo
ne using the security, transaction, etc. features of EJB.
To use a QueryProvider
Modify ServerDataModuleBean.java, changing the line
private boolean useInventoryQueryProvider = false;
to
private boolean useInventoryQueryProvider = true;
----------------------------------------------------------
我在weblogic7.0中配置数据路连接池的时候就出错了,
请问那位高手可以帮忙,是不是他的文档写的有错误???
谢谢了!!!!!!!!
 
文档没错,只是不够详细。
将jds.jar,dataexpress.jar加入weblogic的classpath试一试。
 
我在机子上找了这两个文件还没有,可否告诉我这两个文件的下在地址!!!!!1
 
DataStore的JDBC驱动,JBuilder自带的
 
我想測試﹐但沒有bes,哪儿有這個下載啊﹗www.java.com.cn.download有一個﹐但是有631M
,有沒有小一點的﹗
 

Similar threads

I
回复
0
查看
2K
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
1K
import
I
I
回复
0
查看
2K
import
I
顶部