Workbook 9 deltaExercise 11.1: Stateless Session BeanBecause of a Bug in GlassFish FetchType=Lazy cannot be used. Trivial further updates have been performed in naming. As with Jboss the mappedName refers to names in the global JNDI tree, the value of the default data source is different. Exercise 11.2: XML OverrideAs can be seen from the deployment descriptor used, this is not different for this application server . Exercise 11.3: Annotationless Stateless Session BeanAnnotationless beans do not seem to work, the @Resource annotations can be removed and be introduced using the ejb-jar.xml file, @Remote and @Local and @Stateless cannot be left out, if left out, although the bean is described in the ejb-jar.xml file, it is still not recognized. Exercise 11.4: Stateful Session BeanThe EJB annotation is in the javax.ejb package, not in the javax.annotations package (anymore?) the targets run.createdb and run.dropd are not backed by java classes anymore so these have been removed from the build.xml. An exit and dropexit command has been added to drop de payment table and exit, or to exit the client without dropping the payment table. Exercise 11.5: Annotationless Stateful Session BeanAnnotationless beans do not seem to work, the @Resource and @EJB annotations can be removed and be introduced using the ejb-jar.xml file, @Remote and @Stateful cannot be left out, if left out, although the bean is described in the ejb-jar.xml file, it is still not recognized. Back to the index Further to Workbook 10 UUIDs and information about UUIDs If you have improvements, contact information on the homepage of this host. The uptime of this host |