This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Customize directories for deploy and tomcat.../server.xml
Alex Belisle Turcot
Ranch Hand
Joined: Apr 26, 2005
Posts: 516
posted
0
Hi,
I'm a teaching assistant for a course on j2ee using JBoss and I would need some help for some tricky configuration.. if its even possible..
Every pc has its own JBoss (4.0.4) installed and at one point during the semester the students will have to modify server.xml (.../jbossweb-tomcat55.sar/server.xml). And of course, they will deploy their apps in .../server/default/deploy.
To avoid modifying the JBoss configuration, (since it's used for other classes), is there a way to change the default path for deploy and the default path to server.xml ? They would instead point to their personal version of the files on their personel network drive.
I'm giving you the whole story here because maybe one of you might have a better idea than where I'm heading. Unfortunatly, we have to use the local JBoss for this semester (in a near future they will each have their own JBoss on a server w/ vmware.. then they can play with it).
Anyhow.. Is it possible? and if not, what else could be an option?
Thanks!!
bye, Alex [ September 20, 2006: Message edited by: Alex Turcot ]
You can change the deployment directory, or add directories to the deployment scanner MBean, which is configured in the jboss-service.xml in the server's conf directory.
Very cool!! I've added a new deploy directory to the list (even better than I thought, the original directory is still good + the new one).
Thanks!!!
I'm still wondering for the server.xml if anyone knows...
Regards, Alex
jboss-service.xml:
[ September 20, 2006: Message edited by: Alex Turcot ]
Alex Belisle Turcot
Ranch Hand
Joined: Apr 26, 2005
Posts: 516
posted
0
Hi...
ok, I've deployed "jbossweb-tomcat55.sar" to my new hot deploy directory which can be modified by the students. So now, they can edit server.xml at will.
Not the best solution... cause I would have wanted Jboss to seem out of the box for other courses... now everyone will have to have their tomcat in the new hot deploy directory..
Anyhow, seems to be working, but still if anyone has a better idea...
I tried including multiple deploy directory and duplicate tomcat in 2 of them.. so if anyone doesnt have it in its personal directory, it would take the default one... but the loading order seems odd
ex:
file:///c:/deploy/ seems to be deployed after deploy_tomcat/... whats the loading schema ?
Regards, Alex [ September 20, 2006: Message edited by: Alex Turcot ]
file:///c:/deploy/ seems to be deployed after deploy_tomcat/... whats the loading schema ?
That depends, and that is also the key word. "Depends" You see you have a sar in your deploy_tomcat directory and sars are the first type of archives to be deployed. And sometimes that sar is a dependency of other MBeans and are explicitly declared as such in the jboss-service.xml.
So while it may look as the directory order is what is important it is really JBoss's default Deploy ordering.
Mark
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Customize directories for deploy and tomcat.../server.xml