Ishouldn't think the directory structure would be quite like that; if you set AutoDeployer to watch /tmp/deploy, then you should be able to build a directory structure like this:
/tmp/deploy/my_app
/tmp/deploy/my_app/META-INF
/tmp/deploy/my_app/META-INF/ejb-jar.xml
/tmp/deploy/my_app/META-INF/jboss.xml
/tmp/deploy/my_app/my/package/Test.class
It has to be this way, since you can drop a .jar file into the same directory, and then is it part of an app, or an app in it's own right?
But you are correct, the autodeployer does not autodeploy directories.
Tom
--
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour
+61 8 8348 7645
"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter. I fully intend to read it one day."
- Groucho Marx
-----Original Message-----
From: Jonathan Ackerman [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 5:01 AM
To: 'jBoss'
Subject: RE: [jBoss-User] Auto deploying from directories - Help !
It's not so much the fact that the context does not persist between bounces,
but that I cannot get the server to deploy from a directory (as opposed to a
.jar file).
In several places it's mentioned that Jboss can autodeploy from jar,ear,war
and directories that mimic jar or war 'directory' structures.
It's the last bit (deploying from directories) that I cannot get to work.
There are no examples in the documents but what I assumed is that a
directory structure as follows could be built under a directory that is been
watched by the deployer:
META-INF\ejb-jar.xml
META-INF\jboss.xml
my\package\Test.class
And that the deployer will redeploy from this whenever the ejb-jar.xml file
is touched (as is mentioned in the docs).
However no matter what I do I cannot get this work !
Jonathan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 17 January 2001 9:51 a.m.
To: jBoss
Subject: Re: [jBoss-User] Auto deploying from directories - Help !
Jonathan,
Here is what I found and posted last week:
>Ok, I found that the right place to deploy is using jmx
>DefaultDomain:service=EmbeddedTomcat. However, these deployments are not
>persisted after restarting jboss w/ tomcat. How can these contexts be
>persisted between server bounces?
Erik
> >----- Original Message -----
> >From: Jonathan Ackerman <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, January 16, 2001 1:07 PM
> >Subject: [jBoss-User] Auto deploying from directories - Help !
> >
> >
> >> Hi all,
> >>
> >> The docs/comments for the J2eeDeployer class states:
> >>
> >> /** J2eeDeployer allows to deploy single EJB.jars as well as Web.wars
> >> * (if a Servlet Container is present) or even Application.ears. <br>
> >> * The deployment is done by determining the file type of the given
> url.
> >> * The file must be a valid zip file or a directory and must contain
> >either
> >> a META-INF/ejb-jar.xml
> >> * or META-INF/application.xml or a WEB-INF/web.xml file.
> >> ...
> >> */
> >>
> >> However I have been unable to get it to watch a directory ! I can get a
> >.jar
> >> and .war file to work fine.
> >>
> >> Using the MBean View for the autodeployer, I used the addURLs function
> to
> >> add D:\temp\deploy.
> >>
> >> Jboss responded with:
> >> [Auto deploy] Watching D:\temp\deploy
> >>
> >> I then created a WEB-INF directory, some jsp pages and a web.xml file
> >under
> >> d:\temp\deploy but nothing happens.
> >>
> >> If I jar my stuff up as a war file and put it into d:\temp\deploy it
> >> deploys fine.
> >>
> >> I'm really keen on getting the deployment from directories working as
> it
> >> will greatly ease application development especially with regards to
> JSP
> >and
>
> Your message could not be processed because you are not allowed to post
> messages to the jBoss list.
>
> This could be because your From: address is not the same as what you used
> to subscribe to the list with. Please try changing your From: address to
> match what you originally subscribed with.
>
> For more information, you can contact the list administrator at:
>
> <[EMAIL PROTECTED]>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
