[jboss-user] [EJB 3.0] - Re: Returning an EJB from other

2007-09-14 Thread waynebaylor
what about adding a initialize(...) method that your EJB calls before returning it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084461#4084461 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084461

[jboss-user] [EJB 3.0] - Re: Returning an EJB from other

2007-09-14 Thread wolfc
Either create a method which initializes the bean: @Init void create(int state) | { |this.state = state; | } Put that same method in you business interface. Note that the @Init is actually meant for use with an EJB 2.1 client view. Or if you want a reference to the current bean:

[jboss-user] [EJB 3.0] - Re: Returning an EJB from other

2007-09-13 Thread waynebaylor
have you tried @PostConstruct ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083991#4083991 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083991 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - Re: Returning an EJB from other

2007-09-13 Thread francesquini
Yes. The problem is how do I create a remote reference to an EJB passing an argument. A JNDI lookup, as I am doing now, doesn't allow that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084152#4084152 Reply to the post :