Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


EJB issue of ejbCreate

EJB issue of ejbCreate


Entity EJB practitioners in a case, the client calling the backend DAO EJB module function to transfer operation of the database. (Development and debugging environment for WSAD5.0, DB2 V7)

Insert new data, the client used the backend EJB module Bean's ejbCreate category, in ejbCreate Calling DAO data into the database approach, at this time, being given as follows :
[03-8-20 14:35:14:422 CST] 2085b29b ExceptionUtil E CNTR0021E : bean "BeanId (BMPUser#BMPUserEJB.jar#User, a)" non-application anomaly occurred : javax.ejb.EJBException abnormal data : : : java.sql.SQLException : updUser:com.ibm.websphere.ce.cm.ObjectClosedException DSRA9110E : Connection closed.
At user.ejb.UserBean.ejbStore (UserBean.java:222)
Several at slightly. . . . . . . . . . . .

If EJB Bean category of the content Qingdiao ejbStore, ejbCreate Call DAO can be used to insert data into the database, this process can no mistake, can be operated successfully.

But in updating EJB Bean type of information, in accordance with EJB rules, updating Call ejbStore, in ejbStore
Calling DAO updated database of corresponding data. At this time, the operation can be successful.

EJB use the create method in the implementation of the End Entity EJB bean category ejbCreate methods,
Call EJB whether other types of bean. (EjbStore)

Ariadne hope heroes!



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com