This content has been marked as final.
Show 2 replies
-
1. Re: How to use Seam components in non-web applications
gjeudy Mar 4, 2009 5:33 PM (in response to seamless)I don't know any other way aside from bootstrapping Seam from a servlet container. Thats what SeamListener class does in your web.xml declaration.
<listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener>
Well of course there is the testNG Seam superclass that also bootstraps Seam for testing purposes.
I have looked at using Seam in a non-web app but didn't succeed, let me know if you do succeed.
-
2. Re: How to use Seam components in non-web applications
norman Mar 4, 2009 5:59 PM (in response to seamless)You'll need some code that gets executed as the application starts to initialize Seam by calling the correct methods on Lifecycle. You can see ServletLifecycle as an example of what this looks like in a servlet environment.