[jboss-jira] [JBoss JIRA] Commented: (JBAS-7394) org.jboss.metadata.ear.jboss.JBossAppMetaData

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Wed Oct 21 12:19:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-7394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12490760#action_12490760 ] 

Alexey Loubyansky commented on JBAS-7394:
-----------------------------------------

This is caused by JBMETA-221 in metadata 1.0.1.SP1

===================================================================
--- JBossAppMetaData.java       (revision 78586)
+++ JBossAppMetaData.java       (revision 94292)
@@ -39,7 +39,7 @@
  */
 public class JBossAppMetaData extends IdMetaDataImplWithDescriptionGroup
 {
-   private static final long serialVersionUID = 1;
+   private static final long serialVersionUID = 2;
    private String dtdPublicId;
    private String dtdSystemId;
    /** jboss application version */
@@ -55,6 +55,12 @@
    private SecurityRolesMetaData securityRoles;
    private String libraryDirectory;
    private String jmxName;
+   private ModuleOrder moduleOrder = ModuleOrder.IMPLICIT;
+
+   public enum ModuleOrder
+   {
+      STRICT, IMPLICIT;
+   }

    /**
     * Callback for the DTD information
@@ -191,15 +197,31 @@
    }

    /**
-    * This element is from 4.x versions of jboss-app which is now not used in jboss-5
-    * @param moduleOrder
+    * The order to deploy modules of an EARi in.
+    * If "strict" deploy in application.xml order.
+    * If "implicit" deploy according to the deployment sorter.
+    *
+    * @param moduleOrder how to order modules
     */
-   @XmlElement
+   @XmlElement(name="module-order")
    public void setModuleOrder(String moduleOrder)
    {
+      if ("strict".equalsIgnoreCase(moduleOrder))
+         this.moduleOrder = ModuleOrder.STRICT;
    }
+
+   public String getModuleOrder()
+   {
+      return moduleOrder.toString();
+   }

    @XmlTransient
+   public ModuleOrder getModuleOrderEnum()
+   {
+      return this.moduleOrder;
+   }
+
+   @XmlTransient
    public synchronized ModuleMetaData getModule(String name)
    {
       return modules.get(name);

> org.jboss.metadata.ear.jboss.JBossAppMetaData
> ---------------------------------------------
>
>                 Key: JBAS-7394
>                 URL: https://jira.jboss.org/jira/browse/JBAS-7394
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Shelly McGowan
>            Assignee: Alexey Loubyansky
>
> FAIL 500, 501, 510: serialVersionUID error for org.jboss.metadata.ear.jboss.JBossAppMetaData, 500 1, current: 2

-- 
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