[jboss-user] [Beginners Corner] - Re: comp not bound

jaikiran do-not-reply at jboss.com
Tue Aug 1 10:40:09 EDT 2006


anonymous wrote : +- ConverterBean (proxy: $Proxy52 implements interface converter.ConverterHome,interface javax.ejb
  | .Handle)

So your lookup should be:

Context ctx = new InitialContext();
  | Object objref = ctx.lookup("ConverterBean");

This should work. However, i am surprised as to why your bean was bound to the jndi-name "ConverterBean" instead of "ejb/ConverterBean", which you have mentioned in the jboss.xml as:

<jboss>
  |    <enterprise-beans> 
  |       <session>
  |          <ejb-name>ConverterBean</ejb-name>
  |          <jndi-name>ejb/ConverterBean</jndi-name>
  |         <method-attributes>
  |         </method-attributes>
  |       </session>  
  |    </enterprise-beans> 
  | </jboss>

Where are you placing this jboss.xml file(just wanted to make sure that the server is picking up this file during deployment)


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

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



More information about the jboss-user mailing list