On Tue, Sep 8, 2009 at 9:21 AM, measwel <marek_karczew...@yahoo.com.au>wrote:

>
>
>
> mraible wrote:
> >
> > On Tue, Sep 8, 2009 at 7:55 AM, measwel
> > <marek_karczew...@yahoo.com.au>wrote:
> >
> >>
> >> It does help, thank you. At the moment I lean towards struts2. A couple
> >> additional questions:
> >>
> >> 1) How can I configure netbeans to run appfuse in jetty? Would you
> >> recommend
> >> using this container as standard?
> >>
> >
> > If you're using NetBean's Maven support, it should be possible to run any
> > of
> > the Jetty plugin commands from w/in NetBeans. Typically, I run Maven
> > commands from the command line and use an IDE as a fancy text editor.
> When
> > I
> > need to debug, I use the "remote debugging" support of my IDE, set the
> > proper commands in a MAVEN_OPTS environment variable and attach a remote
> > debugger to the process.
> >
> > - I will look into running maven in netbeans. Would you recommend jetty
> or
> > tomcat? What remote debugger do you use?
>

I recommend Jetty if you've run "appfuse full:source" b/c it'll reload your
classes w/o requiring you to restart the container. Tomcat runs when you run
"mvn install" as part of the integration tests. The remote debugger is one
that's built into your IDE. Here's an explanation:

http://www.mojavelinux.com/blog/archives/2007/03/remote_debugging_with_jetty/


> >
> >>
> >> 2) As I understand it the main difference between jsf an struts is, that
> >> jsf
> >> is component based while struts is action based. In the first, we can
> >> address the stateful components that get initiated on a per user basis.
> >> In
> >> the latter case, we map actions to controller methods and the
> controllers
> >> in
> >> struts are singletons serving all users? Please excuse if the question
> is
> >> rather simple minded - I am learning.
> >>
> >
> > Struts 2 is quite a bit different than Struts 1 and other servlet-based
> > request frameworks. Each controller is "thrown away" after it's
> > initialized
> > and used for a particular user. This means you could ignore thread-safety
> > and store state in member variables, but it's not recommended in case you
> > ever want to make a controller into a singleton.
> >
> > What is meant by 'thrown away'? Does it stay in memory? Can it become
> > detached?
>

It's discarded from memory.


> > Are the controllers in appfuse implemented as singletons or per user
> > basis? What is their lifecycle?
>

Per user. If you need to know more about Struts 2, I'd suggest reading their
documentation or sending message to their user mailing list.


> >
> >>
> >> 3) In the struts libs I do see a code-behind plugin, but not the
> >> convention
> >> plugin. What is the reason for using the former and not the latter?
> >>
> >
> > I haven't updated Struts 2 support since May of 2008. ;-)
> >
> > What are the newer technologies that are not used in current appfuse?
> > Maybe I could take a shot at reworking the basic appfuse intallation to
> > incorporate some of it?
>

I'm sure there's plenty since it's been almost 1.5 years since the last
release. If you're going to change anything, I'd suggest you do it on trunk
and contribute patches to JIRA (http://issues.appfuse.org/browse/APF). More
information on setting up your development environment can be found at:

http://appfuse.org/display/APF/Developer+Guide

This might be a bit outdated due to recent changes on trunk, so if you find
issues, please send them to the dev list (d...@appfuse.dev.java.net).

Cheers,

Matt


> --
> View this message in context:
> http://www.nabble.com/struts2-basic-not-running-tp25338334s2369p25348307.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to