1 Reply Latest reply on Feb 28, 2013 9:20 AM by tcunning

    Can't find my bean in JBoss esb server

    debugx

      I have jbossesb-server-4.11 and eclipse-jee-juno. I want to create some simple EJB application, deploy it on server and call some method from client. Everything seems to be clear. I have found a simple Hello world application here: https://sites.google.com/a/thedevinfo.com/thedevinfo/Home/jboss/jboss-application-server/ejb3-session-bean-tutorial-using-jboss-and-eclipse. I did all the same, I also tried to download this example from this site but it does not work for me. I created JBoss server in Eclipse, then I run my ejb application on this server, then I tryied to get my bean this way:

      InitialContext ctx = new InitialContext(props); MyBeanRemote bean = (MyBeanRemote) ctx.lookup("MyBean/remote");

      But i have the following error: "javax.naming.NameNotFoundException: MyBean not bound". Here is my simple code in ejb project:

      @Remote public interface MyBeanRemote extends IMyBean{} @Local public interface MyBeanLocal extends IMyBean {} @Stateless public class MyBean implements MyBeanLocal, MyBeanRemote { public void doSomething() { System.out.println("Hello World!"); } }

      Please advice me where I am wrong?