On Sun, May 25, 2008 at 12:52 AM, Gabriel Fairbanks
<[EMAIL PROTECTED]> wrote:
>
> Sorry, I forgot to say that I already give a look at AppFuse Light, but I got
> some nasty errors while running ant new. I would like to try more with main
> AppFuse itself :)
>
> Thanks
>
> Gabriel

If starting from scratch, you're probably better off going with
AppFuse Light, but since you're near the point of deploying, you can
stick with AppFuse.

It should be relatively straight-forward to just remove the
authentication (removing security.xml, and its references, a few
changes in web.xml) -- in fact I've done it for one of my
AppFuse-based applications. If you want to remove the AppFuse-shipped
User + Role models and DAOs however, my advice would be to run

mvn appfuse:full-source

first.


You can then easily being to remove all traces of the User and Role
classes from the following places:

looking in src/main/resources:
* remove the User, Role classes from META-INF/persistence.xml (or
hibernate-config.xml if you're using Hibernate)
* remove the userDao and roleDao beans from applicationContext-dao.xml
* remove the passwordEncoder, userManager, roleManager,
userSecurityAdvice, userManagerTxAdvice beans in
applicationContext-service.xml.
* remove the userManagerTx, userManagerSecurity references from
applicationContext-service.xml
looking in your src/webapp/WEB-INF/dispatcher-servlet.xml
* remove all these controllers: passwordHintController,
signupController, userController, userFormController

Run your application (mvn jetty:run) and test that nothing is broken.
You can then proceed to delete the relevant Java classes if you wissh.

I would do a Search + Replace in your IDE, favourite text editor to
check you haven't missed anything.

Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to