[jboss-user] [JBoss Seam] - Re: Howto: acces from bean to another SFSB?
Delphi's Ghost
do-not-reply at jboss.com
Tue Jun 26 12:36:24 EDT 2007
If I'm understanding your question, you could just use a factory method to create the bean and initialize it on demand.
| @Factory(name="gameAction",scope=SESSION)
| public GameAction initGameAction() {
|
| GameAction result = new GameAction(someId,someName);
| return result;
| }
|
When you inject it simply specifiy that you want to create it if it doesn't exist.
| //in some other bean
| @In(create=true)
| private GameAction gameAction;
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057783#4057783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057783
More information about the jboss-user
mailing list