On Mon, Apr 22, 2002 at 06:42:53PM +0100, Simon Stewart wrote:
> I'm currently developing my app heavily, and there are many small,
> incremental changes that I make to one file at a time (for example,
> tweaking the HTML in a JSP) It would be extremely useful if I didn't
> need to prepare an EAR file every time I make a change. Is there any
> way to persuade JBoss to let me work on "live" files? 

Answering my own question, so I hope none of you mind. Turns out that
all you need to do is to recreate your EAR's structure as a directory
tree in your server's deploy directory. 

For example:

sms@lauren:~$ jar tvf foo.ear
     0 Mon Apr 22 18:54:38 BST 2002 META-INF/
    45 Mon Apr 22 18:54:38 BST 2002 META-INF/MANIFEST.MF
     0 Thu Apr 18 15:29:50 BST 2002 META-INF/lib/
 14745 Thu Apr 18 15:29:58 BST 2002 ejb.jar
   573 Mon Apr 22 18:54:38 BST 2002 META-INF/application.xml
196991 Thu Apr 18 15:30:00 BST 2002 oscore.jar
184956 Thu Apr 18 15:30:00 BST 2002 log4j.jar
 14516 Thu Apr 18 17:00:12 BST 2002 web.war
105977 Thu Apr 18 15:30:00 BST 2002 osuser.jar

becomes:

sms@lauren:~/jboss-live$ ls -F ${JBOSS_HOME}/server/default/deploy/foo.ear/
ejb.jar  log4j.jar  META-INF/  oscore.jar  osuser.jar  web.war/
sms@lauren:~/jboss-live$ ls -F ${JBOSS_HOME}/server/default/deploy/foo.ear/web.war/
cms/  index.html  jsp/  META-INF/  _standard.css  WEB-INF/

I hope that's been explained clearly enough. I can explain a bit more
if anyone wants, but I need to have a play with it. Certainly seems to
pick up changes in JSPs and maybe servlets, but I'm not sure if it'll
redeploy EJBs yet.

Cheers,

Simon

-- 
"That time in Seattle... was a nightmare.  I came out of it dead broke,
without a house, without anything except a girlfriend and a knowledge of
UNIX."  "Well, that's something," Avi says.  "Normally those two are
mutually exclusive."                    --Neal Stephenson, "Cryptonomicon"

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to