Home > Uncategorized > How to alter JBoss deployment order

How to alter JBoss deployment order

If one application depends on another one  — you may want to alter the deployment order of JBoss.

1. One way to accomplish this is to change the order in the ${serverconfig}/conf/xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml file.

<attribute access=’read-write’ setMethod=’setEnhancedSuffixOrder’ getMethod=’getEnhancedSuffixOrder’>
   <description>Allows the override of the suffix order declared by subdeployers, using the syntax [order:]suffix
   </description>
   <name>EnhancedSuffixOrder</name>
   <type>[Ljava.lang.String;</type>
   <descriptors>
      <value value="250:.rar,300:-ds.xml,400:.jar,500:.war,550:.jse,650:.ear,800:.bsh"/>
   </descriptors>
</attribute>

2. One way to accomplish this is to create a deploy.last directory inside the deploy directory and put the application that needs to be deployed after the other in the deploy.last directory.

Another one is to modify ${serverconfig}/conf.xmdesc/org.jboss.deployment.MainDeployer-xmbean.xml
and add your application before the othes in the EnhancedSuffixOrder list.

<attribute access='read-write' setMethod='setEnhancedSuffixOrder' getMethod='getEnhancedSuffixOrder'>
   <description>Allows the override of the suffix order declared by subdeployers, using the syntax [order:]suffix
   </description>
   <name>EnhancedSuffixOrder</name>
   <type>[Ljava.lang.String;</type>
   <descriptors>
      <value value=”250:.rar,300:-ds.xml,400:.jar,500:.war,550:.jse,600:mynewapp.ear,650:.ear,800:.bsh”/>
   </descriptors>
</attribute>

About these ads
Categories: Uncategorized Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: