|
NYCJava.net Main Page About NYCJava.net JUG Java Study Groups: SCJP 6 (Programmer Cert.) Java Mobile Design Patterns and JEEnew SCEA 5 (Architect Cert.) Java Enterprise Study Group RSVP for Dec 21 ![]() ![]() A member SIG of http://nypc.org ![]() Sponsor of the NYC Java Meetup ![]() ![]() help support NYC Java: http://cafepress.com/nycjava ![]()
![]() Special thanks to: Sun Microsystems Prentice Hall O'Reilly JetBrains Apress and NYPC! Book Reviews Articles Java Links Java Jobs Humor About Duke System Info Find pages About this Wiki Wiki Quick Start WikiEtiquette
Set your name in
UserPreferences |
1) Read the pdf tutorial section on application server setup and then skip right to the ant tasks section, chapter 4, to compile and deploy. We will compile/deploy using ant tasks so that you can use any IDE (e.g. notepad) for editing source code. (If time permits an Eclipse equivalent of the pdf chapters on using Netbeans to develop First Cup will be available here). 2) Copy the file: firstcup/example/bp-project/build.properties.sample to build.properties in the same folder. Edit this file to correct the paths to the installation of your JEE SDK (or GlassFish). Additional Notes: -Remember to add admin password as described in build.properties (also see pdf tutorial) -Mac users run: export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home -If you don't have ant installed and in your runtime path, use the ant that comes with JEE SDK or Glassfish called "asant" instead. You can also deploy manually (copying ear and war files to autodeploy directory) or use the admin on port 4848: First Cup consists of a Java Faces front end web app (the war file) as well as an enterprise app (ear file) which consists of a web service and EJB (a stateless session bean). As HW assignment, add code to illustrate a stateful session bean, a message bean and entity classes (to fulfill objectives 3.3, 4.1 and 5.2) The FirstCup pdf tutorial goes over step by step in designing and developing the application and you should be able to use any IDE to edit, and ant (or asant) to build and deploy. It's recommended to backup the sample source before creating a new project (to refer back to orginal). When the tutorial refers to any wizard or automated code insertion provided by Netbeans, simply add these manually. A tutorial for the Eclipse IDE will be forthcoming here volunteer needed ;-)
|