Building A J2EE App with Linux 32
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)."
j2ee and linux: the killer combo (Score:4, Interesting)
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.
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
Re:j2ee and linux: the killer combo (Score:3, Insightful)
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. :-)
Re:j2ee and linux: the killer combo (Score:1)
Sorry, Alanis, that's not ironic, just marketing.
JBoss tutorials (Score:1)
Re:JBoss tutorials (Score:1)
Systems Code? (Score:1)
Check this project for a complete application... (Score:1)
Project Hambo [sourceforge.net]
Hello World boring? (Score:1)
That said, good tutorial.
Why not go FULL open source? (Score:4, Informative)
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).
Re:Why not go FULL open source? (Score:1)
I have been toying with the idea of writing slashcode as a J2EE app. I written a number of J2EE apps for my company in the past year or two. I am very experienced with the EJB and backend layers, but not so experienced with the jsp layer. If you're really interested in doing this let me know. I would like to help. I think it would be really interesting to see if a J2EE open source app could run in a large volume environment such as slashdot. I can give you a lot of tips on performance and/or shortcommings of the J2EE environment.
There IS a blog/slash J2EE project (Score:2)
It's called Squabble [squabble.org] named after the website that uses it. It's not ready for prime time yet (they are working on v2.0, which in their words "Won't cause as much embarrassment to us when people brose the code").
As far as help goes, I'm sure if you contacted Clay, he would be happy to talk.
Re:Why not go FULL open source? (Score:1)
Re:Why not go FULL open source? (Score:2)
Version 2.0 will be available in a week or two. One of the wonderful things about Eclipse, is how extensible it is. There are many plugin's available for EJB development.
Eclipse ships with plugins builtin for integration with Ant, JUnit, etc. If you're using Tomcat or JBoss, WebSphere (Or pretty much any mainstream J2EE App Server) there are plugins to integrate with them too.
J2EE overkill (Score:5, Insightful)
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!
Re:J2EE overkill (Score:1, Interesting)
Check out my J2EE books (Score:2)
Go to http://www.starvingmind.net/tech.php [starvingmind.net] and check them out.
Changing topics, I have been experimenting with a servlet container called Resin [caucho.com], which people in the industry seem to regard as the fastest for JSP/Servlet apps. Development License is free, production license is $500 IIRC. Worth looking into once JSP/Servlet performance becomes an issue for you. It is not Open Source, but it looks to be a very high quality product, which runs fine on Linux.
-Pete
O'Reilly's Book (Score:3, Informative)
-Pete
How about how to INSTALL the bastard (Score:2)
I tried the whole Linux/Java thing. Couldn't get the Java environment to install for love or money.
Re:How about how to INSTALL the bastard (Score:1)
Linux/J2EE Scalability Problem for Enterprise Apps (Score:3, Interesting)
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.
Re:Linux/J2EE Scalability Problem for Enterprise A (Score:3, Informative)
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.
Re:Linux/J2EE Scalability Problem for Enterprise A (Score:1)
Easy, Robust, and Open! (Score:3)
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 [jboss.org]. 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.
JBoss (Score:1)
After you read the hype about the mystical and versatile powers of EJBs, brush up on its real-world shortcomings and some useful patterns for overcoming them at The Server Side [theserverside.com].
WYSIWYG Form Editor for JSP (Score:1)
Anyone know of one?