[jboss-jira] [JBoss JIRA] Assigned: (JBAS-6841) Contribution: PrioritizableDeploymentSorter

Ales Justin (JIRA) jira-events at lists.jboss.org
Wed Apr 29 11:26:51 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin reassigned JBAS-6841:
---------------------------------

    Assignee: Dimitris Andreadis  (was: Ales Justin)


Assigning to Dimitris, as this is 4.x feature.

In 5.x (or later) new VDF layer handles this via explicit dependencies:
* ClassLoading (jboss-classloading.xml)
* Fine grained (jboss-dependency.xml)

More info is here: http://www.jboss.org/community/docs/DOC-13178

> Contribution: PrioritizableDeploymentSorter
> -------------------------------------------
>
>                 Key: JBAS-6841
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6841
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Deployers
>    Affects Versions: No Release
>         Environment: Any - basic functionality.
>            Reporter: Bruno Melloni
>            Assignee: Dimitris Andreadis
>         Attachments: appLoadPriority.properties, CNDCjBossComponents-9.4.28.jar
>
>
> This is a contribution, not a feature request.  Dennis in support indicated this is the correct mechanism.  Please guide me in the right direction if it is not.
> Problem being solved:
> - We use the Unified ClassLoader to allow us to deploy reusable components only once.  Thus, client applications do not have to have duplicate instances of JARs and resources.
> - In our case, most of the projects containing reusable components are SARs or EARs.
> - Those SARs and EARs are tiered, and therefore have dependencies on some of the other SARs and EARs.
> - Business reasons prevent us from renaming  the applications to force-fit them into the ordering scheme supported by either the default DeploymentSorter or the alternate prefix-based deployment sorter currently available.
> - A quick Google search showed that many others have similar needs.
> Solution description:
> - Use a file (server/<serverType>/conf/appLoadPriority.properties) to give a priority number to each 'prioritized' application.  
> - Priority 0 loads first, 1 second, and so on.  Priority numbers do not need to be sequential (0, 10, 20 is fine).  
> - Multiple applications may have the same priority.  For example, all applications included in the jBoss distribution naturally have priority 0 and therefore load first.
> - Applications that are not explicitly listed load last.
> - Applications may be listed even if they have not yet been deployed to the server.  Those entries are simply ignored.
> - Within a given priority, the order remains the same as that of the default org.jboss.deployer.DeploymentSorter (that is, by extension, with the order specified there).
> The implementation is in one class (org.jboss.deployment.PrioritizableDeploymentSorter), one config file (mentioned above) and a one line change in server/<serverType>/conf/jBoss-service.xml to tell it to use that Comparator.
> Note:  This was only a half-day job.  It is a reliable no frills implementation, but could easily be fancier, use XML files, or not require listing jBoss' apps.  Feel free to modify as needed.  It won't hurt my feelings.
> The code and a sample appLoadPriority.properties file will be attached if Jira allows it in later screens.  If not, please provide a URL or email address to submit the code and sample file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list