3 Replies Latest reply on Mar 15, 2007 2:26 AM by Ales Justin

# SpringDeployer EnhancedSuffixOrder

I am using spring deployer to deploy my spring beans , archived as abc.spring and specified in application.xml as follows :
< module>
< ejb>spring/abc.spring
</ module>

The spring beans do a jndi lookup for hibernate session factory deployed as a har file which is specified in jboss-app.xml as follows :
< module>
< har>har/xyz.har
</ module>

Problem is that spring deployment happens before the har deployment (application.xml before jboss-app.xml) and so it fails .
Is there any way I can force the har deployment before the spring ?

I played around with xmbean definition yesterday but 'EnhancedSuffixOrder' seems to not have been defined for SpringDeployer. As far as I can fathom , .spring and .har both have order of 350 . Is there anyway this can be changed ? Can I get the source code for SpringDeployer anywhere ?

• ###### 1. Re: SpringDeployer EnhancedSuffixOrder

Problem is that spring deployment happens before the har deployment (application.xml before jboss-app.xml) and so it fails .
Is there any way I can force the har deployment before the spring ?

Edit org.jboss.deployment.MainDeployer-xmbean.xml file in [JBoss_home]\server\default\conf\xmdesc directory. You'll see which line to fix.

I played around with xmbean definition yesterday but 'EnhancedSuffixOrder' seems to not have been defined for SpringDeployer. As far as I can fathom , .spring and .har both have order of 350 . Is there anyway this can be changed ? Can I get the source code for SpringDeployer anywhere ?

Sure.
Look in the JBossAS SVN repo. Under spring-int module.
And I think you can change the suffix order number via MBean attribute.

• ###### 2. Re: SpringDeployer EnhancedSuffixOrder

"alesj" wrote:

Edit org.jboss.deployment.MainDeployer-xmbean.xml file in [JBoss_home]\server\default\conf\xmdesc directory. You'll see which line to fix.

As far as I understood, the maindeployer defines the order of artifacts which it can deploy. Individual deployers are supposed to define their own order which will be read during runtime by the mainDeployer.

"alesj" wrote:

Sure.
Look in the JBossAS SVN repo. Under spring-int module.
And I think you can change the suffix order number via MBean attribute.

I am unfamiliar with the JBoss SVN environment. Kindly direct me to the specific location.

THanks !

• ###### 3. Re: SpringDeployer EnhancedSuffixOrder

"diippi" wrote:

I am unfamiliar with the JBoss SVN environment. Kindly direct me to the specific location.

http://anonsvn.jboss.org/repos/jbossas/trunk/spring-int/