Creating J2EE application in IntelliJ Idea 6.0 - EJB3/JBOSS +Ajax. Tutorial. Part 3

To deploy it's all we need to create war file within application

Create application

New Module -> Java EE Application Module

Type app:

Next -> Add deployment descriptor

Add to packaging ejb and web modules

Press Finish.

To deploy application Run -> Edit Configurations...

Press "+" choose JBoss from the list-> Local->

Name: Jboss ->Application Server Jboss 4.0.4RC1 -> Startup page: http://localhost:8080/web/index.html->

Server Instance -> all

Go to Deployment tab ->press Configure button

Check Create application archive (ear) file:

Press Ok

Press Ok on the main dialog and lets Run it

And in log we see new record(JavaScript on page load sends Ajax request)

In attach you will find Source code(in attached project names a little bit changed)

Useful link(read 23-24 chapters)

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

Hope this helps

Igor Kononuchenko (c) 2006 www.ajaxline.com