Skip to Content
avatar image
Former Member

Deploy and run J2EE application client


I have developed a simple "hello World" EJB program and created a .jar (EJB archive). Next I have created .ear(Application archive) in a separate project and added the .jar file.

Now how and where I will write the application client( that will contain main() )and deploy and run the application which will show Hello world from the EJB .

Please help

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 21, 2005 at 03:35 PM

    hello ananda,

    you have to create a web application for your client then.

    try writing an HTTPServlet that will create your EJB

    instance and invoke a method defined in your EJB thru the

    interface. deploy your servlet and access it thru your


    here's a link to a code sample for a web client.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All

      I have solved the J2EE client application with main() calling EJB's after going through the SAP article "Accessing EJB Applications Using JNDI.pdf"

      If anyone has queries let me know.