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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to