Home JBoss howto Configuration How to let JBoss deploy an application after other apps?
30 | 07 | 2010
JBoss 5 AS Book
"JBoss AS 5 development" reviews
Please share your feedback/review with other readers!
Banner
Dashboard
Advertise with Us
Banner
RSS Feed
Java EE 1.6 resources
Login
Sign here for the NewsLetter.



JBoss admin resources
Banner
Java EE 1.6 resources
JBoss howto

How to avoid the 50 seconds start up limit in Eclipse ?

JBoss recipe of the day ...
Read More

How can you solve deployment errors caused by large war/jar/ear files ?

jboss recipe of the day ...
Read More

How do you configure your .war to be deployed after your EJB ?

jboss recipe of the day ...
Read More
How to let JBoss deploy an application after other apps?
Written by Mark S.   
JBoss recipe of the day

If your application needs to be deployed after other applications, the quickest way to instruct JBoss to do it is simply creating a "deploy.last" folder inside the "deploy" folder.
JBoss will then pickup this application when has terminated deploying other applications under "deploy"


JBoss.org Search
Custom Search
Comments
Search
E. Rohde  - An other way to accomplish this     |2008-11-13 11:41:41
An other way to accomplish this, is to modify
${serverconfig}/conf/xmdesc/org.jboss.deployment.M ainDeployer-xmbean.xml and
add your ear to the EnhancedSuffixOrder list.

For eample:


Allows the
override of the suffix order declared by subdeployers, using the syntax
[order:]suffix

EnhancedSuffixOrder
[Ljava.lang.String;






Note myapp.ear is put before the .ear suffix.
admin   |2008-11-13 11:49:48
thank you E.Rohde, your contribution is highly appreciated. In case you want to
share any other clue feel free to write at
administrator@mastertheboss****.
thanks
Fran cesco
E. Rohde  - An other way to accomplish this     |2008-11-13 11:44:53
An other way to accomplish this, is to
modify ${serverconfig}/conf/xmdesc/org.jboss.deployment.M ainDeployer-
xmbean.xml and add your ear to the EnhancedSuffixOrder list.

For eample:

Code:


Allows the override of the suffix order declared by
subdeployers, using the syntax [order:]suffix


EnhancedSuffixOrder
  [Ljava.lang.String;




 


Note how myapp.ear is put before the .ear suffix.
mannyd   |2009-11-02 23:05:04
You can also use the PrefixDeploymentSorter as the comparator for the
URLDeploymentScanner in jboss-service.xml. Useful when you have
multiple applications which need to be deployed in a certain order. If
a single application with the numerical prefix, then that will be deployed
in the end.


 org.jboss.deployment.scanner.PrefixDeploymentSorte r


From
jboss-service.xml

- org.jboss.deployment.scanner.PrefixDeploymentSorte r

If the name portion of the url begins with 1 or more digits, those

 digits are converted to an int (ignoring leading zeroes), and

files are deployed in that order. Files that do not start
with
  any digits will be deployed first, and they will
be sorted by
extension as above with DeploymentSorter.
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."