Java EE Hello World Application Server

I am quite pleased with the autonomous development of Java applications, but I will soon be working on a project using the Java EE application server.

Does anyone know of a simple practical tutorial for getting an application like hello-world running on an application server? I (perhaps naively), believing that the general approach is similar between different structures, so I am more interested in finding an approach, rather than getting caught up in the differences between different structures.

If you don’t know about a good guide, can you post steps like a bullet point to get a welcome world ?, i.e.

  • Download XX
  • Write the code for YY
  • Modify ZZ File
  • Other steps ...

Note. Just because I have a home machine for Windows, I would prefer to work if it could be run on Windows, but in the interests of a better answer, you can use linux / mac based versions.

+3
source share
5 answers

I would choose JBoss AS or GlassFish to get started. However, I'm not sure what you mean by Java EE "Hello World". If you just want to deploy JSP, you can use this tutorial (for JBoss):

http://www.centerkey.com/jboss/

If you want more information and make an EJB stack and / or deploy an ear file, you can read the very good JBoss documentation:

Installation guide

Beginning of work

Setup guide

In general, you can also simply perform a basic installation and modify or try preinstalled sample applications.

I currently have JBoss installed (on windows). I am developing Eclipse and using Java EE Server Integration to quickly deploy or debug my code. After you get your first code, you really should take a look at ide integration, as it speeds up roundtrips development / deployment.

+6
source

JavaEE (they dropped 2) the space is pretty big. A good tutorial to start with is the one from Sun. For a simple hello world application, a web container would be enough. A well-known servlet jsp container is tomcat. See here for installation instructions. Try installing it using eclipse and creating a web project. This will create some files for you that you can view and edit. In addition, starting and stopping the application server is easier.

+5
source

Another option is to get Oracle JDeveloper (free to download and use - this is a full-featured development environment, including some neat add-ons, such as SQL workbench and BPEL developer).

As a training tool, this is not bad, not only for the tutorials available in Oracle, but also includes a series of cue-card lessons in the tool itself for teaching many common methods.

bitmap view http://tardate.heroku.com/images/jdev-cuecards.jpg

+2
source

If you have not come close to NetBeans, then it quickly catches up with Eclipse and is worth a look, especially when starting Java EE.

Version 6.x installs Tomcat and / or Glassfish for you, and then provides wizards for creating / deploying / redeploying applications.

The source web application tutorial here is a more complex example.

+1
source

As JeroenWyseur notes, Java EE is a fairly large space. In addition to what he said, you should try to get more detailed information about what exactly you will do: servelts and co, EJB (entity, session, beans message?) And try to familiarize yourself with this.

It should be clear to you that your code runs in a managed environment, which imposes many limitations. in order for you to understand what is happening, you must familiarize yourself with the concept of deployment. Then, if you do EJB, transaction management is important too. If you do not understand what happens when you deploy a bean or servlet, how transactions are managed, how beans are called, it will be difficult for you.

The book that helped me a lot at the time was mastering EJB, Ed Roman.

Also, getting to know RMI will help you understand EJB.

0
source

All Articles