Hello everyone: I'm trying to learn EJB with "Head First EJB". I want to set up my Macintosh OS X system with everything I need to do all the exercises in the book. My system came with J2SE 1.4.1 on it. When the book says to get J2EE SDK, does that mean I have to get some JAR files to add to my system? I went to java.sun.com, but there I don't see a binary for my precise system. There is a binary for Linux. Is this what I need? Could someone tell me what precisely is in the J2EE? What exactly are the EJB 2.0 compliant servers? I have jakarta-tomcat 4.1.27 application server. Is this complaint? It does have a JSPservlet container. The book advices getting J2EE 1.3. And further states that it included the JAR file with the entire J2EE API (including the classes needed for EJB development), and the practice Reference Implementation (RI) server. How do I deploy J2EE 1.3 on my system? In other words where do I put the various component pieces? Thanks for your help.
Hi, you should get j2ee.jar and as you know java technology is not OS dependent. Tomcat is a container for JSPs/Servlets so you cannot use it with EJBs. I suggest you get JBoss because it's freeware and it's a fully functional application server. This has all the jars you need for developing and deploying j2ee applications. As a development environment I suggest IntelliJ or Eclipse. Good luck and welcome to the J2EE world
Sergui thanks. I'll look into JBoss. I already did get Eclipse as IDE. Is JBoss J2EE server as well as an EJB container? I wanted to use the J2EE RI for the exercises in the book. The book in the section "Intro to EJB" shows a terminal window where j2ee is started. I think that j2ee is the reference implementation(RI). This isn't pure java running under the JVM, so doesn't that mean that it has to be written to some specific OS? Does this exist for the Macintosh OS X 10.3.2 and where do I get it on sun's website?
Since you have 10.3, install Xcode and the J2EE components. I wrote a quick tutorial on how to do it. I don't really recommend Xcode as a day to day environment, but if you started there you would be able to start from a fully functional system. Either way, by installing the J2EE components, you get JBoss 3.2, ant and XDoclet all on your system to play with. Even if you download your own stuff later, it's a good place to start...
Hi everyone: I'm looking for a quick and simple answer to my question. Is j2ee reference implementation talked about in "Head First EJB" available for my OS, which is Mac OS X 10.3.2? If it is, what is it called, and where do I get it, and how do I install it? What is entailed? I want to use the recommended material as presented in the book as I learn EJB. Afterward, I don't mind delving into better offerings for j2ee complaint servers and EJB containers. But in the beginning I want to follow along with what is in the reference book I'm using. That means using what they use. Thanks everyone for your help.
I believe the book uses the J2EE 1.3 version of the RI/SDK. You can download it from http://java.sun.com/j2ee/sdk_1.3/1.3_01/ However, there is no Mac OSX specific download, so you may have to simply try whether the Linux download works on your OS.