Slashdot Mirror


Building A J2EE App with Linux

Dejected @Work writes "If you think "Hello World" is always simple and boring try building it with a entity/session EJBs, a servlet, a JSP page, and a HTML home page on Linux. This tutorial shows you how to develop, test, run, and debug a complete J2EE application using Linux and WebSphere(trial download)."

8 of 32 comments (clear)

  1. j2ee and linux: the killer combo by tps12 · · Score: 4, Interesting

    This tutorial is an excellent starting point for people who want to get into J2EE. J2EE has quickly become one of the hottest new technologies on the market, and for good reason.

    Some background for n00bs: J2EE == Java 2 Enterprise Edition, Java's flagship Java product. Ironically, "Java 2" actually refers to Java >= 1.2, but we'll let that slide. ;) In any case, the enterprise edition has proven the favorite environment for high-availability, low-latency business applications.

    As for deployment platform, I have to say that Linux is the ideal Java platform. Both companies support open source, so the community has made sure the integration is tight and optimized for users that demand the performance of C++ with the ease of use of Python.

    This tutorial would be of help to anyone trying to break into the software industry, and a boon especially to those interested in C# and .NET, which by all appearances will be to Java what Java was to Linux, minus X11 and plus COM.

    --

    Karma: Good (despite my invention of the Karma: sig)
    1. Re:j2ee and linux: the killer combo by The+Pim · · Score: 3, Insightful
      What a bunch of gibberish to get modded up!

      Both companies support open source

      What "both companies"? Is Sun one of them? Their support for open source is highly dubious. For certain, it's hardly in their interests to make Linux the "ideal" Java platform.

      so the community has made sure the integration is tight and optimized

      Give one example of how Java is "integrated" into Linux, much less "tight and optimized". On my system, Java is terribly integrated: I have to download parts from all over the net and put them together myself. Most of those parts (like the 50 MB jre) don't feel very "tight and optimized". Indeed, it is the Java industry's disregard for (or fear of?) open source that most impedes "the community"'s efforts to make Linux a good Java platform.

      the performance of C++ with the ease of use of Python

      Java "performance" is still largely vaporware: "just one more technology, and we'll be as fast as C++". (Not that this matters for most applications.) And if Java is as easy to use as Python, why am I so grateful for Jython?

      C# and .NET ... by all appearances will be to Java what Java was to Linux, minus X11 and plus COM

      Ok, now I think you're just putting us on! Either that, or you didn't do very well on the analogies section of the SAT. :-)

      --

      The evaluation of an action as 'practical' . . . depends on what it is that one wishes to practice.
  2. Why not go FULL open source? by FortKnox · · Score: 4, Informative

    And d/l the Java & J2EE SDK, run on Linux with Apache, Jakarta's Tomcat, JBoss, and use an open source DB like postgres or mySQL.

    There are full open source options for J2EE (in fact, I have been toying the idea of making a weblogging program similar to slashcode or scoop with J2EE, under the GPL, of course).

    And as a side note, J2EE on windows, linux, unix, or mac isn't different, you know. Did this article just get approved cause it has a tutorial in linux? The only thing that you'll have to deal with is installing the side software in linux (websphere, essentially).

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
  3. J2EE overkill by oops · · Score: 5, Insightful

    The problem I see repeatedly with J2EE adoption is the insistence of developers to use every facet of the API. That means EJBs, JSPs, servlets, JMS (messaging), transaction services etc. People don't seem to realise that J2EE is a set of APIs, and a simple servlet/JSP/JDBC solutions is just as 'J2EE'-compliant as a full bean-driven, JTA-enabled solution.

    To ease yourself in, start with servlets and JSP (obviously for web-enabled apps). Then start adding beans (stateless session then stateful session and then entity), etc. Don't hope to throw every Java-enabled TLA together and hope for a performant J2EE solution!

  4. O'Reilly's Book by peterdaly · · Score: 3, Informative

    If you want the learn about the J2EE EJB container services, I highly reccomend O'Reilly's Enterprise JavaBeans (3rd Edition), I have both the second and third additions, and think they are both great.

    -Pete

  5. Linux/J2EE Scalability Problem for Enterprise Apps by lprimak · · Score: 3, Interesting

    Unfortunately, Linux is not an adequate deployment platform for high-traffic enterprise apps. This is due for the most part to the Linux threads architecture (or lack thereof) and less-than-optimized java implementation. Since Linux has no real threads and no optimized mutex locking (such as adaptive locks), high workload, simultaneous requests and network traffic brings latencies up very rapidly and makes the system dog slow very quickly.

    Of course, Linux can be a great development platform for J2EE, and the apps can be deployed on Solaris (even Solaris Intel) or MacOS X (which has a marveous super-optimized JVM)

    In (clearly unscientific) testing that I made, Solaris Intel was about 3x as fast under load and a lot snappier than Linux on the same hardware.

    --
    Lenny Primak PP-ASEL-IA,Heli
  6. Easy, Robust, and Open! by JohnA · · Score: 3
    AnalystScan (http://www.analystscan.com) is a high volume, dynamic Java powered web site. It runs PURELY open software (Jakarta Tomcat, Linux, PostgreSQL, Sendmail, JBoss), and has even withstood a mini-slashdotting when it was the focus of a slashdot posting regarding stock market analysts.

    If you want to get going quickly, I recommend that you begin using Jakarta Tomcat 4. It has some features that make developing true J2EE apps a lot easier (JNDI support, JMS support, etc.) Remember that many J2EE apps don't actually need EJBs, which means that you do not need to deploy a J2EE container. If you choose to deploy a container, I recommend JBoss. It has some quirks, but is true free software, and the latest versions are actually beginning to outperform some commercial EJB containers.

    Finally, take heed of some other people's comments... you do not need to have every Java TLA running for the solution to be a J2EE application. Choose the bits and pieces that meet your needs, and don't throw in the kitchen sink just because it's the technology du jour.

  7. Re:Linux/J2EE Scalability Problem for Enterprise A by gengee · · Score: 3, Informative

    Unfortunately, you're smoking crack. This is due for the most part to you're narrow-minded view that a high-traffic enterprise app needs to run on one, gigantic server.

    The JVM itself does not scale adequately to serve high-traffic enterprise apps. The locking issues are not w/ Linux - they're with the JVM itself. You'll get nearly linear scaling w/ Sun's JRE going from one to 2 processors. A fair amount less making the jump to 4. After that, you're screwed. The JVM will hang on internal locks, and you'd be lucky to get much performance gain at all. It's certainly true that Sun's JRE implementation runs best on Solaris - imagine that. But if you run under IBM's JRE (Which is already a good bit faster than Sun's), you'll see very little difference.

    Web-applications are perfectly suited to load-balancing. Throw a couple hot/hot $1000 LVS 1u servers in front of your application servers, and you can scale to millions of hits/day.

    --
    - James