[jboss-user] [JBoss Seam] - Re: Difference between @Factory and @Create for outjected co

matt.drees do-not-reply at jboss.com
Tue Oct 9 01:07:59 EDT 2007


@Out behaves in a "push" fashion; @Factory behaves in a "pull" fashion.  

So, without a @Factory, you need to trigger the creation of your component somehow.  I'd suggest you make a page action that runs a (potentially blank) method in that component.  


I'm not sure why the debug page shows that the jobTicket exists when you weren't using @Factory; maybe your component was injected/called by something else in the conversation?  You could put a breakpoint in createTicket() if you really wanted to know.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092830#4092830

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092830



More information about the jboss-user mailing list