[jboss-user] [EJB/JBoss] - Re: EJB 3 : stateful problem
zzeuxis
do-not-reply at jboss.com
Thu Nov 30 04:34:01 EST 2006
My best guess is that it's the way I call my bean from my jsf backing bean that's wrong : here is what I do :
| // constructor
| public MyJSFBackingBean() {
| this.bindJndiRessources();
| }
|
| private void bindJndiRessources() {
| Context context;
| try {
| context = new InitialContext();
| String beanName = StatefullBean.class.getSimpleName() + "/local";
| System.out.println("binding bean " + beanName);
| this.myBean = (StatefullInterface) context.lookup(beanName);
| } catch (NamingException e) {
| e.printStackTrace();
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989962#3989962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989962
More information about the jboss-user
mailing list