Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
LeftMenu




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuse_it


This is version 4. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


NB: Questo wiki ed il suo contenuto sono dedicati ad AppFuse 1.x. Se preferisci utilizzare AppFuse 2.x, prego vedi il nuovo wiki su http://appfuse.org. Grazie!

Che cos'è AppFuse?

AppFuse LogoCheck out our Frappr! AppFuse è un'applicazione per fare "kickstarting" dello sviluppo di una webapp. Scarica, decomprimi ed esegui ant new per essere subito pronto con un'applicazione Tomcat/MySQL. Usa Ant, XDoclet, Spring, Hibernate (o iBATIS), JUnit, StrutsTestCase, WebTest di Canoo, Struts Menu, Display Tag Library, OSCache, JSTL e Struts (o Spring MVC). Il framework Spring ha ampiamente migliorato AppFuse da Febbraio 2004. Viene usato ovunque per il suppporto ad Hibernate/iBATIS, le transazioni dichiarative, il binding delle dipendenze ed il disaccoppiamento dei layer. Questo framework semplice e pulito ha ampiamente ridotto la complessità di AppFuse ed ha anche consentito la rimozione di numerose righe di codice. In breve, per J2EE - è la cosa migliore che sia mai apparsa dai tempi del pane tostato. Per saperne di più su cosa sia AppFuse vedi questa pagina sul wiki.

Le feature includono l'Autenticazione (con l'uso di Acegi Security), il Remember Me, l'Auto Registrazione, il Suggerimento Password e la Compressione GZip. La fucina per costruire le tue applicazioni.

Demo Live
Screenshot

Video: Nuovo Progetto e Panoramica sulle Feature (in inglese)
Istantanea Setup
Video: Generazione di Codice con AppGen (in inglese)
Istantanea AppGen

Se vuoi partire subito con AppFuse, vai alla QuickStart Guide. Se vuoi saperne di più sull'architettura di AppFuse vedi il mio PowerPoint "About AppFuse" o vai a vederti una demo live. Ho anche scritto una presentazione recente per la conferenza No Fluff Just Stuff di Denver.

Per HowTo sullo sviluppo con AppFuse, vedi i Tutorial AppFuse.

Per domande comuni ed howto, vedi le FAQ, l'archivio della mailing list o visita il canale IRC AppFuse. La pagina iniziale del progetto AppFuse è su http://appfuse.dev.java.net.

Per vedere cosa ti attende con AppFuse, vedi la Roadmap.

23 Ottobre 2006 - AppFuse 1.9.4

La nuove caratteristiche maggiori di questo rilascio sono l'aggiornamento a Spring 2.0, Hibernate 3.2 e l'integrazione di Facelets + Ajax4JSF per l'opzione JSF. In aggiunta, molte librerie sono state corrette ed alcuni bacherozzi sono stati spiaccicati.

11 Luglio 2006 - AppFuse 1.9.3

Questo rilascio è innanzitutto un rilascio di bug fix, ma contiene anche aggiornamenti per diverse dipendenze come librerie, inclusa Acegi Security 1.0.1.

6 Giugno 2006 - AppFuse 1.9.2

Questo rilascio include l'integrazione del Framework CSS, il supporto alla copertura del codice tramite EMMAe il supporto ai sub-package in AppGen. Un grazie ai Vincitori del Concorso di Design del Framework CSS , Doug Hays e Mika Göckel, per il loro aiuto per questo rilascio.

7 Aprile 2006 - AppFuse 1.9.1

Questo rilascio include miglioramenti ed aggiornamenti a Tapestry 4.0.1, WebWork 2.2.2, nonché il supporto per l'uso di AppGen nel reverse engineering delle tabelle di un database (con Middlegen). iBATIS è ora supportato da AppGen ed è stato approntato un tutorial Create DAO per iBATIS. Il supporto ad iBATIS e Middlegen sono stati forniti da Bobby Diaz - grazie Bobby! Inoltre, un bel grazie va a Mika Göckel per aver scritto un Tutorial su XFire e l'installer. Per installare e configurare AppFuse per lo sviluppo, vedi la Guida QuickStart. Grazie a tutti gli sponsor che hanno contribuito fornendo prodotti ed hosting gratuito al progetto AppFuse.

14 Gennaio 2006 - AppFuse 1.9

Questo rilascio include la completa integrazione di Acegi Security, il supporto per Ajax con DWR e Scriptaculous e molti bug fix/aggiornamenti. In aggiunta, si può fare il deploy di AppFuse senza configurare il tuo application server. Ovviamente, se preferisci usare una DataSource JNDI, si può fare lo stesso facilmente. Per installare e configurare AppFuse per lo sviluppo, vedi la AppFuseQuickStart. Grazie a tutti gli sponsor che hanno contribuito fornendo prodotti ed hosting gratuito al progetto AppFuse.

27 Agosto 2005 - AppFuse 1.8.2

​​​​Questo rilascio è principalmente un rilascio di bug fix privo di nuove feature. Include anche aggiornamenti per Acegi Security e Spring Framework. Grazie a tutti gli sponsor che hanno contribuito fornendo prodotti ed hosting gratuito per questo progetto.

15 Giugno 2005 - AppFuse 1.8.1

Questo rilascio è principalmente un rilascio di bug fix senza nuove feature. Include anche diversi aggiornamenti alle librerie di base (Hibernate, Spring, iBATIS, MyFaces). Grazie a tutti gli sponsor che hanno contribuito fornendo prodotti ed hosting gratuito al progetto AppFuse.

15 Giugno 2005 - Tutorial di Thogau

Thomas Gaudin ha messo insieme un paio di tutorial dettagliati e semplici da seguire sul suo sito.

6 Maggio 2005 - Installato JIRA

Creati i Video di AppFuse ed impostato un nuovo Issue Tracker JIRA. Grazie ad Atlassian per la licenza gratuita di JIRA e a Contegix che ce lo sta ospitando. Grazie anche a KGB Internet Solutions per aver sposnsorizzato l'hosting delle Demo di AppFuse.

29 Aprile 2005 - AppFuse 1.8

Questo rilascio sostituisce la Container Managed Authentication (CMA) con Acegi Security. Fra le altre feature principali numerosi bug fix ad AppGen ed un refactoring del build.xml per sfruttare le feature di Ant 1.6. Sono stati migliorati anche i file di progetto per Eclipse ed IDEA in modo che tu possa eseguire facilmente i test dall'interno del tuo IDE. È stato aggiunto anche un installer all-in-one fatto con MyJavaPack in modo che tu possa scaricare in un colpo solo tutto ciò che server per AppFuse. Eclipse e relativi plugin non sono stati inclusi in questo primo rilascio, ma potrebbero esserlo in un rilascio futuro.

8 Dicembre 2004 - AppFuse 1.7

Questo rilascio aggiunge il supporto per JSF/MyFaces e Tapestry come opzioni di framework web. AppGen è stato aggiornato in modo da funzionare con entrambi ed ho aggiunti anche dei nuovi tutorial. Puoi leggere un resoconto della mia esperienza in Integrating JSF and Tapestry into AppFuse.

9 Novembre 2004 - AppFuse 1.6.1

Questo rilascio è principalmente un bug fix, ma contiene anche un utile strumento "AppGen" per la generazione di logica CRUD completa (con dati di esempio e test) a partire da un POJO. AppGen essenzialmente automatizza tutto ciò che fai nei tutorial. Io incoraggio comunque gli utenti a leggere fino in fondo e svolgere i tutorial in modo da capire il codice che viene generato. Per saperne di più su AppGen.

9 Ottobre 2004 - Rilasciato AppFuse 1.6

This release's main features are swapping out Tiles for SiteMesh and adding WebWork as a web framework option. I also refactored the Struts Action tests to use MockStrutsTestCase and eliminated the need to use Cactus for running web tests. This reduced test execution time by over 50%. The relationship between users and roles was re-worked to take advantage of Hibernate's features as well.

27 Maggio 2004 - Rilasciato AppFuse 1.5

This release has lots of modifications that I've been meaning to make for quite some time. Specifically (1) removing the dependency on j2ee.jar and (2) removing Struts from the services layer. I also made improvements to Spring and its context file loading so you should be able to run unit tests from your IDE.

Other notables include full i18n support (with translations in Dutch, Portuguese and Chinese), improved setup-tomcat target (no additional JARs needed now), and an option to use Spring's MVC framework instead of Struts - with full tutorials! If you'd like, you can read more about my conversion from Struts to Spring. Enjoy!


01.03.2004 - Rilasciato AppFuse 1.4

This release involves many changes: re-arranging packages/directories, Spring integration, Remember Me refactorings and I also added iBATIS as a persistence option. I also spent a lot of time going through the tutorials to make sure they are up to date. I've been using AppFuse 1.4 for a few weeks on my current project, and I really do like the way Spring makes it easy to configure Hibernate, Transactions and Interface->Implementation relationships. If you're interested in upgrading your AppFuse 1.x app to use Spring, you can checkout this howto.

I also made the leap and moved the AppFuse project from SourceForge to java.net. This is mainly so I have more control over mailing lists and adding other developers. As of today, CVS files in SourceForge and Java.net are the same - but I'll only be updating Java.net from here on out. I also have released files in both projects, but will only use java.net in the future.

Here's a specific rundown of all the changes from the changelog.

  • Added "cactus" task for running Cactus tests in Tomcat 4.x and Resin 3.0.5.
  • Added Tomcat Ant tasks for managing tomcat with the Manager app and Ant.
    • Currently supports: install, remove, start, stop, reload and list.
    • I recommend using "ant setup-tomcat deploy" and then using "ant reload" after running "ant deploy" when you change .java or config files.
  • Removed "upload" module and integrated file-upload into the core. Removed unnecessary scriplets from uploadForm.jsp.
  • UI Enhancements:
    • Changed CSS for error messages to have a red border around them - making it easier to distinguish errors from messages.
    • Added onclick and onfocus event handler to form inputs to select the text when an input type="text" is clicked or focuses on.
  • Changed directory structure from common/ejb/web to dao/service/web. Read more...
  • Added Spring to configure Hibernate, DAOs and Managers. Configured declarative transactions at the service and dao layers. Configured OpenSessionInViewFilter for guaranteeing one transaction per request. Read more...
  • Changed UserCounterListener to only record users that have logged in successfully. Also added a screen to show currently logged in users.
  • Changed default session timeout to 10 minutes instead of 60.
  • Implemented persistent login cookie strategy (for Remember Me) as recommended by Charles. Read more...
  • Added iBATIS as a persistence framework option. Read more...
  • Added custom web.xml XDoclet template for ordering filters and listeners.
  • Added support for generating indexed property setters in ActionForms when generating Forms with XDoclet. This support includes adding Velocity JARs to the the list of 3rd party JARs. Currently, Velocity is only used by XDoclet.
  • Added "Account Information" e-mail as part of registration process. This e-mail gets sent the e-mail address the user entered on signup.
  • Dependent packages upgraded:
    • Cactus 1.6 Nightly (20030119) to support the "cactus" task and Resin 3.0.5
    • JSTL 1.0.5
    • Patched Canoo's WebTest to work with Ant 1.6
    • Hibernate 2.1.2
    • MySQL JDBC Driver 3.0.11

16.01.2004 - Rilasciato AppFuse 1.3

This release fixes a few compatibility issues with Resin and other databases - specifically PostgreSQL and DB2. The major new functionality in this release is Easy Database Switching. Basically, you can very easily switch from using MySQL to PostgreSQL by only changing a few properties in your build.properties. I implemented this on my current project last week because I do most of my development (at the client) on a PowerBook. The client wants to deploy onto a DB2 database - and there is not DB2 install for the Mac. Since Hibernate allows you to easily switch between databases, I figured I could develop using MySQL on the Mac, but have the default (CVS version) use DB2. One of the things I didn't want to do was to have a build.properties.sample, because I love projects that "just work" when you type "ant". So I changed the the build process so that database.properties is generated from default settings (MySQL) or the settings in build.properties (if specified). As part of the build process, Ant looks for the following build.properties files:

  • ${user.home}/.${ant.project.name}-build.properties
  • ${user.home}/.build.properties
  • build.properties

What this allows you to do is to take your customized database settings and put them in ~/.build.properties and they'll be applied to any AppFuse-derived project. This makes it easy to keep the CVS version of your project tied to one database and a developer's local version tied to a different database.

While it's true that you'll most likely only talk to one database during the duration of your project, this exercise proves that it's easy to migrate from MySQL to another database. It also proves that AppFuse can easily integrate with other database (at least as of this release). Slick stuff IMO. Here's a specific rundown of all the changes from the changelog.

  • Many changes to database settings so that database.properties is generated at run-time from properties in build.properties (defaults to MySQL). This makes it easy for users to run a MySQL database in development and have a DB2 database (or any other) in production. Just customize your database settings and put them in ~/.build.properties or ~/.appname- build.properties and these settings will be used instead of the default.
    • As part of this process, I tested AppFuse on DB2 8.1 (on Windows) and PostgreSQL 7.4 (on OS X).
    • Testing on other servers caused me to change from generator-class="native" to generator-class="increment" - which still works fine on MySQL.
    • I also changed tomcat-context.xml to dynamically substitute database properties and defaultAutoCommit is now "true" by default.
  • Added error pages for 404 (page not found) and 403 (access denied), both with pretty pictures. ;0) Protected /editUser.do for admin role only.
  • Moved filter-mappings from Filter's JavaDocs (XDoclet) to metadata/web/filter-mappings.xml in order to control the order of execution.
  • Made RememberMe feature configurable via a "rememberMe.enabled" property in app-settings.xml. This won't kick on Resin until the filter is invoked at least once. Tomcat initializes filters on startup.
  • Upgraded oscache.jar in Hibernate 2.1.1 to OSCache 2.0.1 and configured OSCache to cache JSP changes. Also modified the oscache-2.0.1.jar to have a URI for the tag library. Turned off caching of JSP pages - to enable, uncomment filter-mapping in metadata/web/filter-mappings.xml.
  • Made changes to be Resin 3.0.4 friendly. Read More...
  • Refactored BaseDaoHibernate to consolidate retrieveObject and removeObject methods. Also changed saveObject to do ses.saveOrUpdate and removed storeObject method.
  • Replaced CompressionFilter with GZipFilter that works on Resin.
  • Added print stylesheet support. Thanks to Bear Giles for the suggestion.
  • Added Clickstream and menu/JSPs to view user paths.
  • Dependent packages upgraded:
    • XDoclet 1.2.0
    • Cactus 1.6 Nightly (20030116) to support "cactus" task for supporting a "contextxml" attribute for testing in Tomcat.

BTW, I hid all the older releases of AppFuse to avoid download confusion - if you need to download an older version, please let me know.

08.01.2004 - AppFuse ed ant 1.6.0

Upgrading from ant 1.5.4 to 1.6.0 necessitates the following change in build.xml (just FYI):

===================================================================
RCS file: /cvsroot/struts/appfuse/build.xml,v
retrieving revision 1.37
diff -r1.37 build.xml
5,6c5,6
<     <!ENTITY properties SYSTEM "file:properties.xml">
<     <!ENTITY app-settings SYSTEM "file:app-settings.xml">
---
>     <!ENTITY properties SYSTEM "file:./properties.xml">
>     <!ENTITY app-settings SYSTEM "file:./app-settings.xml">
otherwise ant complains about file:properties.xml could not be found.
Friday, January 10th: Fixed in CVS. However, there's still issues with running Canoo's WebTest with 1.6.0

20.12.2003 - Rilasciato AppFuse 1.2

This is primarily a bug fix release. Here are the details from the release notes:

  • Backed out Http Post for Remember Me. It was not redirecting user to the page they originally requested. Using reponse.sendRedirect does send the user to the proper location. Turned on password encryption (SHA) to protect any passwords that end up in log files. Turned off encryption in Tomcat.
  • Changed configuration parameters in servlet context to be in a hashmap.
  • Improvements to StrutsGen tool to generate list screen as well and to fill in more missing elements.
  • Changed to close Hibernate session when object not found in BaseDaoHibernate.
  • Fixed bug in UserAction.save: when creating a new user, role defaults to "tomcat" regardless of what the user chooses.
  • Dependent packages upgraded:
    • Hibernate 2.1.1
    • Struts Menu 2.1
    • WebTest Build 379

12.12.2003 - Rilasciato AppFuse 1.1

This biggest feature in this release is Documentation. I finally found the time to write up some Tutorials on developing with AppFuse. They're on this wiki and also in the "docs" folder of the binary and source downloads. In writing this documentation, I went through almost all aspects of the code with a fine-tooth comb made sure it's doing what I want it to do.

I was finally able to get things working with J2EE 1.4, which basically involved removing j2ee.jar from my MailUtil's classpath and just including activation.jar and mail.jar. If you're not there yet, simply change the paths for activation.jar and mail.jar in properties.xml (look for common.compile.classpath). You can use j2ee.jar instead of mail.jar and activation.jar with J2EE 1.3 and 1.4 B2.

I was also able to get all unit tests to pass on Tomcat 5, and the "setup-tomcat" target now supports Tomcat 5. I wasn't able to get "Remember Me" to work - see the tomcat-user mailing list for more details.

Included in this release are upgrades to Hibernate 2.1 Final and Display Tag 1.0 B2. For a complete changelog, view the README.txt in CVS.

30.11.2003 - Rilasciato AppFuse 1.0

I feel this release deserves the big 1.0 designation because it is an up-to-date representation of my learnings and my perceived best practices in building web applications. Of course, as I learn more, I will continue to push out new releases.

In this release, I did a lot of refactoring and enhancements to existing features. The DAO and Manager interfaces are no longer tied to Struts or Hibernate. Hibernate's Session object is now passed as an argument into Manager and DAO constructors, rather than method signatures. The DAOFactory was refactored by Bear Giles to use reflection to instantiate Hibernate DAO's. Now, if you add a new DAO, you don't have to edit DAOFactory and DAOFactoryHibernate. To insantiate a new DAO, the code is now:

LookupDAO dao = (LookupDAO) DAOFactory.getInstance(conn, LookupDAO.class);

...where conn is a connection object retrieved from ServiceLocator or ActionFilter. When you add new POJOs, you still have to add them to ServiceLocator (for JUnit tests) and hibernate.cfg.xml, which is kindof a pain. I'd like to figure out a way to tell Hibernate to just look in appfuse-ejb.jar.

The Remember Me feature has been refactored so the username and password cookies are only available under the /appfuse/security url-pattern. I also changed the posting to "j_security_check" in LoginServlet from response.sendRedirect to an HTTP POST, using Jakarta Common's HttpClient. The reason I have a LoginServlet vs. just using action="j_security_check" in my <form> is to encrypt passwords.

I've developed 3 different applications using AppFuse (struts-resume is one of them), and I have found that it's a pain to upgrade to new versions of AppFuse. Because of this, I don't recommend upgrading unless you really need to. I will be upgrading struts-resume to AppFuse 1.0, but I doubt I'll upgrade it to any future AppFuse releases - it's just too much work for not much reward.

I rilasci precedenti si possono trovare su http://raibledesigns.com/downloads.

Se vuoi incoraggiarmi a migliorare AppFuse, puoi effettuare una donazione.



Go to top   More info...   Attach file...
This particular version was published on 18-Jan-2007 03:10:10 MST by MarcelloTeodori.