[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread [EMAIL PROTECTED]
Its not necessary that you follow the default. You can provide the JNDI name for your bean using @RemoteBinding annotation. For ex @Stateless @RemoteBinding(jndiBinding="MyStatelessRemote") public class MyStatelessBean implements MyStatelessRemote { --- } Client Code Object ref = jndi

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
I've tried the following. ctx.lookup("ejb/Session/remote"); and get "ejb not bound" ctx.lookup("Session/remote"); and get "Session not bound" What is the correct syntax for this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947153#3947153 Reply

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
thanks for that. When you say yourEjbProject, do you mean the package path? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947147#3947147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947147 --

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread wauwau0977
hi jboss fulfills the latest sun spec, which changed the lookup. try this ctx.lookup("yourEJBProject/BeanName/remote|local"); | regards, patrick heusser -- patrick heusser http://www.x8ing.com/fractal/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947