J2EE Development on MacOSX
RyanG asks: "So I'm
looking to get a new laptop and have found myself very tempted by
Apple's iBook for a
variety of reasons like cost, performance, size, etc. Now I know
Steve Jobs once touted the Mac/OSX as the (future) premier platform
for Java development but I'm curious to know what people think of it
in practice? I'm particularly interested in hearing from people who
work with JSPs and Servlets."
One month ago, I and one partner were convinced that we should build our
own web site. He will supply contents and I will program it. So, I
bought a iBook and downloaded JSDK 2.0, JWServer 2.0,
JSP 1.1. For database, at this stage is JDBC. Later plan is
to have JDBC+Oracle. I am a long time Java programmer. But I am new for
JSP and JWServer. In about 2 weeks, I learned those stuffs. And I am
very impressed by JSP concepts. Then, after I and my partner agreeed on
the business plan, I started to code (many time spend on learning JSP,
JWServer, session, cookie, etc). In about 3 weeks (each day for 5 hr), I
did set up the programming frame of our site. Now, I have about 20 jsp
files, and about 10 Bean files to support back end logic and database
connections, also have about 10 HTML files to do presentations, like
form, statements. Up to now, I am very happy I made a right decision to
use JSP tech, instead of old Perl (Do you have other tech which is
basically free and powerful? So, cold fusion and ASP is not in the range
of our touch). Anyway, our site is up now, the site is dynamic, and the
logic is not simple and can really support any logic easily since we
have a full language is behind of us.
I experienced some bad things. The bundled JRE of JWServer is JDK 1.1.7,
which has no many methods of JDK 2.0. Yet, if you use JRE of 2.0, then,
I experienced some very bad crash of Server, i.e. some perfect JSP pages
could crash the Server, and I do not know the reason at all. So, I have
to use JRE of 1.1.7 and changed my codes back to 1.1.7's API. After
this, the Server crash seems gone. I can have Server runs smoothly for
several days.
I think the speed is satisfactory for me. At beginning, I am worried
about database speed. Not any more. Of course, our site is not connected
to net yet, all testing is via a 56K modem (actual line speed is often
less than 30K). Seems our Server serves page quite fast. I can only
hope when many users visit our site, our this configuration can still
live well. My guess is that since JSP/Servlets utilize many threads, the
scalibility is not that hard. If we have powerful machine to handle
these threads (like multi processors), we have no bottle neck at
business logic side. The bottle neck will be database and traffic. We
can't do anything on traffic. For database, only hope Oracle will help
us. Maybe this is too naive. Since whole codes are written very strictly
by Sun's standard of Java (all resources are in property files, for
example), I hope it can move to different machine, Web server, database
easily. But, this is unknown also.
Up to now, I would recommend anybody to use JSP/Servlet tech for new web
developments.
first off, it works really well for development. you can run any of the all java IDEs like netbeans or forte from sun or even borland's jbuilder
i've been using jbuilder4 for a while. i had a bit of a hack getting the linux version to install, but once i did, its all straight up java 2 code, so it ran fine. (i prefer jbuilder4 since its got the ability to load in the vi editor tool from sourceforge - jvi.sourceforge.net i've got tomcat 3.2.1 and 4.0 running fine on my pb, and it all works like a champ.
i've found that the java integration into osX is outstanding. apple has made it one of the languages to code full on applications for osX with. i've got a coworker who does use the apple IDE projectBuilder to do his java development, so i know its possible. i just havent done it. i use jbuilder on NT at work, so i wanted to keep the same project files.