0 Replies Latest reply on Apr 18, 2007 11:37 PM by prashanth kodoth

    sample hello world application

    prashanth kodoth Newbie

      I am a beginner. I want to start with a hello world application.
      at this point i made the following :
      a>business interface
      c>test client


      package server;

      import javax.ejb.Remote;

      public interface firstInterface
      public String hello();



      package server;

      import javax.ejb.Remote;
      import javax.ejb.Stateless;

      @ Stateless
      @ Remote(firstInterface.class)
      public class firstBean implements firstInterface

      public String hello()
      return "hello world !";


      package client;

      import javax.naming.Context;
      import javax.naming.InitialContext;
      import server.firstInterface;

      public class firstTestClient {

      * @param args
      * @throws Exception
      public static void main(String[] args) throws Exception
      // TODO Auto-generated method stub
      Context ctx = new InitialContext();

      firstInterface fInterface = (firstInterface) ctx.lookup("server/firstInterface");


      i have no idea as what to do further. I do not know the flow. for instance what all xml files do i need to generate and esentially how do i deploy the bean.

      i realy appreciate if you guys could help me out.

      thank you.