Closed glassfishrobot closed 11 years ago
@glassfishrobot Commented @romain-grecourt said: Here are some additional thougths:
1)
2)
3)
@glassfishrobot Commented tmueller said: Here is some information from Ian Evans that might be relative to the Java EE samples:
First, some background. Our example source was previously based on the Blue Prints Ant build files, customized for our purposes. This allowed us to use a single build.xml file that would work on the command-line with Ant, or within NetBeans (in which case the application would use the NetBeans-generated build files). Maintaining the Blue Prints build files was a hassle, though, and having two parallel build systems made testing more difficult.
We're now in the middle of migrating to Maven for our examples. I've documented some of the process in the following wiki pages on our java.net site: http://java.net/projects/javaeetutorial/pages/ConvertingAntToMaven http://java.net/projects/javaeetutorial/pages/MavenArtifacts
Currently we have not tried using the maven-glassfish-plugin to deploy the applications or configure resource, though we intend to. We can, however, deploy and run the applications from within NetBeans, with the exception of Application Clients. The NetBeans team, for whatever reason, doesn't support running Application Clients, either standalone or as EAR modules, within the IDE if they are Maven projects. This worked for Ant-based projects.
Our example code can be checked out using svn from the following URL: https://svn.java.net/svn/javaeetutorial~svn/trunk
@glassfishrobot Commented @barchetta said: Feedback from Arun concerning Java EE 6 samples to carry forward:
Based upon the Java EE 6 SDK Samples at:
http://java.net/downloads/glassfish-samples/promoted/javaee6-samples-1.0-b03-installer.jar
Here are the samples that should be carried forward:
ejb/ jpa/ rest/message-board-war rest/managed-beans-war need to be cleaned up and remove classes with @ManagedBeans security/ web/jsf/ should be moved to one higher level directory web/servlet/ should be moved to one higher level directory webservices/ should be renamed to jaxws/ (no need for "hello" in all directory names) weld/ should be renamed to cdi/*
And from John Clingan:
Regarding engineering priority, here's my take: First: REST samples (taking into account Arun's managed beans comment) weld (simply because many developers are still new to it) ejb war app, servlet 3.0 annotations sample (would be nice to keep pushing this message) ejb embeddable api (popular for testing)
Next: JSF 2 (AJAX) samples security - servlet programmatic login sample Servlet 3.0 Web Fragments sample
Next: remainder of samples
@glassfishrobot Commented @ssevozen said: Initial Java EE 7 sample workspace is in place, migration instructions for Java EE 6 samples have been provided.
@glassfishrobot Commented @barchetta said: Samples workspace: https://svn.java.net/svn/glassfish-samples~svn/trunk/ws/javaee7
See README.html in that directory for details.
@glassfishrobot Commented @ssevozen said: Closing since basic Java EE 7 samples build and deployment framework has been provided although there will be ongoing improvements.
@glassfishrobot Commented Issue-Links: is related to GLASSFISH-19258
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-19256
@glassfishrobot Commented Reported by @barchetta
@glassfishrobot Commented Marked as fixed on Friday, February 15th 2013, 8:48:08 am
We need to implement samples for Java EE 7. Some things to consider:
Some issues to clarify:
Also, the tutorial team is migrating their examples to maven. They are currently using the Maven GlassFish Plugin as a replacement for the capabilities that the old ant based BP framework provided, but it needs enhancements.
Affected Versions
[4.0_dev]