4 Replies Latest reply on Mar 30, 2018 12:05 PM by jewellgm

    Dealing with different versions : JBOSS 7 Vs WildFly 10

    jack_tauson_sr

      I have a webservice developed using WildFly 10 version.I generated a WAR file using Eclipse. It works fine when I deployed it on the RHEL server where WildFly 10 version was installed.

      I am wondering, if I have to deploy this WAR file on the RHEL server where JBOSS AS 7.1 version is running, is it going to create any problem? Or there is not effect of version number?

        • 1. Re: Dealing with different versions : JBOSS 7 Vs WildFly 10
          jewellgm

          I assume that you mean JBoss EAP 7.1 and not JBoss AS 7.1.  Either way, it's almost impossible to say without more details about what's in your application.  It is much more likely to work with EAP 7.1 than it is with AS 7.1.  (AS 7.1 won't even run on Java 8, which would probably mean that you have to recompile on Java 7, if you can even do that.)

          • 2. Re: Dealing with different versions : JBOSS 7 Vs WildFly 10
            ctomc

            JBoss EAP 7.1 is pretty much the same as WildFly 11, as such most application should run fine on both.

             

            But as Greg said, if you do mean JBoss AS 7.1.1 (many years old community release) than answer is no.

            • 3. Re: Dealing with different versions : JBOSS 7 Vs WildFly 10
              jack_tauson_sr

              Thanks for your answer. Please find more information below:

               

              Yes, I am trying to deploy it on JBoss AS 7.1. The WAR file that I built was using WildFly 10.x on my Eclipse and that too using Java 8.

               

              I guess I am going to compile my project using JDK 7 since JBoss AS 7.1 doesn't run on Java 8. Also, in my eclipse, I was wondering if the following option would help me (attaching the screenshot below):

               

               

              Although, I don't have JBoss AS 7.1 in my runtime listed above right now, I am planning to add it in the list. How about if I compile my project using WildFly 10.x  using Java 7 and then export it using JBoss AS 7.1. Do you think this is going to work?

              • 4. Re: Dealing with different versions : JBOSS 7 Vs WildFly 10
                jewellgm

                I don't really know what the export does, so I won't even hazard a guess on that.  There are several things you need to be aware of:

                 

                1.  Both JBoss AS 7.1 and Wildfly 10 are based on the OSGi architecture that was introduced as part of AS 7.0.  (That's a good thing.)

                2.  Wildfly 10 is Java EE 7 compliant, while AS 7.1.1 is Java EE 6 compliant.  If you are using any functionality introduced in EE 7, you're out of luck.

                3.  I am guessing that you have dependencies on Wildfly modules.  There were a lot of changes between AS 7 and Wildfly 10, so you will probably need to re-compile against the Wildfly 7 modules, otherwise you'll get errors at runtime about missing methods, or modules, or classes, etc.

                 

                I'm sure there are other things, but it's all very dependent on your specific application.