Java Reference
In-Depth Information
Testing the EJB 3.0 entity client
Next, run the client JSP in a browser with the URL http://localhost:7001/
weblogic/catalog.jsp . The test() method of the session bean gets invoked. Three
entity bean instances get created and persisted to the MySQL database. As shown in
the server output, the entity bean property values for the entity instance corresponding
to author David Baum get listed. The titles of all the three entity instances get listed.
Subsequently, an entity instance gets removed, as indicated by the subsequent query to
fetch all entity instances, which lists only two entity instances.
 
Search WWH ::




Custom Search