Testing EJB webapps without having to package to WAR/EAR?

C

Carl Olsson

I am new to EJB programming. I am developing in IntelliJ IDEA and will
maybe use the JBoss server. My question is:

1. If a develop an webapp with JSPs and EJBs, must I create a WAR och
EAR file with these before I test it? When I develop I want to write
some code, then test it and then write more and test and so on. Can´t
I compile to a certain directory in the JBoss/deploy folder so I see
the change without having to package the files and then deploy. That
will save alot of time.

2. Must you restart the server when you redeploy a webapp with jsp:s
and EJBs?

Regards
Carl Olsson
 
S

Sudsy

Carl said:
I am new to EJB programming. I am developing in IntelliJ IDEA and will
maybe use the JBoss server. My question is:

1. If a develop an webapp with JSPs and EJBs, must I create a WAR och
EAR file with these before I test it? When I develop I want to write
some code, then test it and then write more and test and so on. Can´t
I compile to a certain directory in the JBoss/deploy folder so I see
the change without having to package the files and then deploy. That
will save alot of time.

On my server with an AMD XP1800+ processor the compile/build/deploy
cycle only takes about 10 seconds. But then I'm using Eclipse and the
JBoss IDE.
2. Must you restart the server when you redeploy a webapp with jsp:s
and EJBs?

Nope. From Eclipse you just deploy and the new version is immediately
available.
Regards
Carl Olsson

I've written a document on using the Eclipse/JBoss environment which
you might find interesting:
<http://www.sudsy.net/technology/jboss.html>

HTH
 
K

kaspar minosiants

Carl said:
I am new to EJB programming. I am developing in IntelliJ IDEA and will
maybe use the JBoss server. My question is:

1. If a develop an webapp with JSPs and EJBs, must I create a WAR och
EAR file with these before I test it? When I develop I want to write
some code, then test it and then write more and test and so on. Can´t
I compile to a certain directory in the JBoss/deploy folder so I see
the change without having to package the files and then deploy. That
will save alot of time.

2. Must you restart the server when you redeploy a webapp with jsp:s
and EJBs?

Regards
Carl Olsson

a goot tool for this is MyEclipse plug-in for eclise. It extends eclipse
to j2ee development http://www.myeclipseide.com
 
M

Michael N. Christoff

Carl Olsson said:
I am new to EJB programming. I am developing in IntelliJ IDEA and will
maybe use the JBoss server. My question is:

1. If a develop an webapp with JSPs and EJBs, must I create a WAR och
EAR file with these before I test it? When I develop I want to write
some code, then test it and then write more and test and so on. Can´t
I compile to a certain directory in the JBoss/deploy folder so I see
the change without having to package the files and then deploy. That
will save alot of time.

2. Must you restart the server when you redeploy a webapp with jsp:s
and EJBs?

Regards
Carl Olsson

Check out xdoclet and ant. The packaging/deployment is very fast. Also,
jboss does not need to be restarted to redeploy. The jboss user guide has
instructions on how to get this setup going. Post back if you're still
having problems.



l8r, Mike N. Christoff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top