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

wolfc do-not-reply at jboss.com
Fri Sep 14 10:06:39 EDT 2007

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:
MySession getReference()
  | {
  |    return ctx.getBusinessObject(MySession.class);
  | }

See also: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1020/

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

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

More information about the jboss-user mailing list