|
|
||
Roger Kitain's BlogSeam (FCS) On GlassFishPosted by rogerk on July 25, 2006 at 10:45 AM | Comments (1)So far we've seen how we can get Seam running on GlassFish with Hibernate Persistence and Java Persistence. Modifications were needed to the Seam core classes as well as the application classes. Fortunately, JBoss has made the modifications to their core classes in time for their Seam FCS release. In this entry we'll outline the steps to get the Seam FCS release up and running on GlassFish with Java Persistence. Prerequisites:
Code Change Summary The following changes apply to the Seam Booking application: ./examples/booking/resources/import.sql ----> Added trailing semicolons to each sql statement ./examples/booking/resources/META-INF/persistence.xml ----> Updated for application with GlassFish and Java Persistence ./examples/booking/resources/META-INF/ejb-jar.xml ----> Updated per EJB 3 schema: added schema namespace and <interceptors> element ./examples/booking/resources/WEB-INF/web.xml ----> Added schema namespace ---->Updated JNDI lookup pattern ---->Disabled MyFaces StartupServletContextListener - we're using JSF 1.2 ---->Added <ejb-local-ref> elements for EJB applicaton actions ./examples/booking/src/org/jboss/seam/example/booking/RegisterAction.java ./examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java ./examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java ./examples/booking/src/org/jboss/seam/example/booking/LoginAction.java ----> Updated sql statements passed to EntityManager.createQuery ./examples/booking/src/org/jboss/seam/example/booking/User.java ---->Refer to table name 'Users' ./examples/booking/view/conversations.xhtml ---->Added <ui:composition> element The following change is to a Seam (JSF) custom component: ./src/ui/org/jboss/seam/ui/HtmlLink.java ---->Added encodeEnd method to properly end either an HTML input element or an HTML hyperlink element All of these entries are in the seam-1.0.1.GA-booking-patch.zip file and can be reviewed. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment
| ||
|
|