[jboss-user] [JBoss Seam] - @Factory usage
tonylmai
do-not-reply at jboss.com
Thu May 10 19:52:05 EDT 2007
Hello,
Borrowed the concept from example "message", I implemented the following Seam component:
@Stateful
| @Scope(ScopeType.SESSION)
| @Name("orderMgr")
| public class PendingOrdersManagerBean implements PendingOrdersManager, Serializable {
| private static final long serialVersionUID = 1L;
|
| @DataModel
| private List<TdOrderInfo> workingOrders;
|
| @DataModelSelection
| @Out(required=false)
| private TdOrderInfo orderInfo;
|
| @Factory("workingOrders")
| @Observer("newOrder")
| public void getPendingOrders() {
| ...
| }
And
@Name("orderInfo")
| @Scope(ScopeType.EVENT)
| public class TdOrderInfo implements Serializable {
| private static final long serialVersionUID = 1L;
| private OrderInfo orderInfo = null;
| private String lockOwner = null;
|
| public TdOrderInfo() {}
| ...
| }
However, the method that is marked with @Factory was never called.
What am I missing here?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044856#4044856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044856
More information about the jboss-user
mailing list