[jboss-user] [JNDI/Naming/Network] - Re: problem with deploy file jboss
do-not-reply at jboss.com
Sat Jun 28 03:50:31 EDT 2008
anonymous wrote : 2008-06-27 21:10:17,656 ERROR [STDERR] javax.naming.NameNotFoundException: SessionEJB not bound
You are using "SessionEJB" jndi-name to lookup your bean and it looks like that's not the name to which the bean is bound.
anonymous wrote : @Stateless(name="SessionEJB")
The "name" attribute is just the name of the bean and not the jndi-name to which the bean will be bound. Use the @RemoteBinding or @LocalBinding annotations, to bind the bean to a jndi-name of your choice. See this for an example http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/slsb/index.html.
To find out the jndi-name to which your bean is bound, follow the steps mentioned at http://wiki.jboss.org/wiki/DisplayTheJNDITreeWithTheJMXConsole
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161333#4161333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161333
More information about the jboss-user