I don't know how to start. I d/led Sun's J2EE w/ an app server. It comes with 3 demos. I compiled them and failed to run them. Anyway, I care less about those demos. I just want to run a simple Hello world demo just to get a feel of what ejb however I don't know where to start. Can someone please help me. I am reading "Mastering EJB" and it claims that they want to stay Application Server neutral can it contains simple codes that I don't know how I should run them. Can somebody forward me some links or instructions to get me started? Many thanks.
Hi edward, I am also a starter and i was able to run the appplication after some difficulty. I am also studying Ed Roman's book and as you had mentioned it does not mention how to run it any particular web server. Since you have now written the source files, you would now have to deploy the files in your application server or to be more precise deploy the Enterprise java bean and then run the client:-) Since you already have the sun application server I would suggest you to deploy the application using the deploy tool utility provided with sun application server. To know how to use the deploy tool, you can go through the J2EE 1.3 tutorials in the sun web site. the link is http://java.sun.com/j2ee/1.3/download.html#tutorial REMEMBER you will have to download tutorials for J2EE 1.3 , BUT have J2EE 1.4 to run the deploy tool. You would also encounter certain other small problems. Please follow the link given below to see the problems I had faced when I tried to deploy the application in Sun application server using the J2EE 1.3 tutorials http://www1.coe.neu.edu/~hari/html/tutorials/java/ejb/example/example.html Hope this helps!! GOOD LUCK :-)
Thanks a lot, I can try your hints out. Something that I found interesting is that your app server won't work until you unplug your internet. As far as I know, your browser doesn't use localhost port 80, unless you have a webserver on, the port 80 should be free and if you do have a webserver on, port 80 will be in use even the computer is unplugged from the internet. Anyway, I'll keep trying. When did you start studying and when are you planning to write the exam?
Study 30 days and you will be ready? quite smart. Are you studying full time? BTW, I ran into the problem of not able to start the application server which uses port 1043. I tried to shutdown most of the useless process (which I have no clue what they are) and the port 1043 is available again and I then can start the application server. Anyway, if disconnecting the computer from internet works for you, that's good.