1 2 Previous Next 17 Replies Latest reply on Feb 13, 2010 8:33 AM by asookazian Go to original post
      • 15. Re: Using JRebel 3 with JSF 2, Weld 1.0, EJB 3.0
        asookazian

        Ok, so I downloaded the latest nightly build (with the fix for the above stated reading from packaged archive problem) and had excellent results:


        22:25:10,492 INFO  [STDOUT] Hibernate: select booking0_.id as id0_, booking0_.checkinDate as checkinD2_0_, booking0_.checkoutDate as checkout3_0_, booking0_.creditCard as creditCard0_, booking0_.hotel_id as hotel10_0_, booking0_.user_username as user11_0_, booking0_.creditCardName as creditCa5_0_, booking0_.creditCardExpiryMonth as creditCa6_0_, booking0_.smoking as smoking0_, booking0_.beds as beds0_, booking0_.creditCardExpiryYear as creditCa9_0_ from Booking booking0_ where booking0_.user_username=? order by booking0_.checkinDate
        22:25:16,386 INFO  [STDOUT] Hibernate: select top ? hotel0_.id as id8_, hotel0_.zip as zip8_, hotel0_.city as city8_, hotel0_.address as address8_, hotel0_.name as name8_, hotel0_.price as price8_, hotel0_.country as country8_, hotel0_.state as state8_ from Hotel hotel0_ where lower(hotel0_.name) like ? or lower(hotel0_.city) like ? or lower(hotel0_.zip) like ? or lower(hotel0_.address) like ?
        22:25:46,358 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.seam.example.booking.HotelSearching'.
        22:25:46,398 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.seam.example.booking.HotelSearchingAction'.
        22:25:46,437 INFO  [STDOUT] JRebel-JBoss: Reconfiguring EJB 'jboss.j2ee:service=EJB3,name=HotelSearchingAction' [org.jboss.seam.example.booking.HotelSearchingAction]
        22:25:46,461 INFO  [STDOUT] JRebel-Seam: Reconfiguring Seam component 'hotelSearch' [org.jboss.seam.example.booking.HotelSearchingAction]
        22:25:46,493 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.seam.example.booking.JmxHibernateStatistics'.
        22:25:46,507 INFO  [STDOUT] JRebel-Seam: Reconfiguring Seam component 'jmxHibernateStatistics' [org.jboss.seam.example.booking.JmxHibernateStatistics]
        22:25:46,548 INFO  [STDOUT] part1
        22:25:46,563 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.seam.example.booking.User'.
        22:25:46,608 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.seam.example.booking.Hotel'.
        22:25:46,618 INFO  [STDOUT] JRebel-Seam: Reconfiguring Seam component 'hotel' [org.jboss.seam.example.booking.Hotel]



        This particular line of output:


        22:25:46,548 INFO  [STDOUT] part1



        Is coming from the line of code in a new method in the HotelSearchingAction class/component.


        Pretty cool, now I will try out the @EJB addition hot reload...

        • 16. Re: Using JRebel 3 with JSF 2, Weld 1.0, EJB 3.0
          asookazian

          Wow, I'm impressed, @EJB and @In additions to the Seam component (in this case HotelSearchingAction) were hot reloaded as well.


          Fantastico!


          the stack I used for this test run is: JBoss 4.2.3.GA, Seam 2.2.0.GA


          For completeness, here is a partial listing of my Eclipse console (note all the JRebel plugins that do the magic):


          #############################################################
          
           JRebel 3.0-M2-SNAPSHOT (201002121625)
           (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
          
           Over the last 1 days JRebel 
           prevented the need for at least 10 redeploys/restarts
           saving you between 0.3 and 0.5 hours.
          
           This product is licensed to Arbi Sookazian ([Open-Source] JBoss Weld) 
           until February 12, 2011
           With the following restrictions: 
           Only for open source development
          
          #############################################################
          
          =============================== [JRebel JBoss Plugin] ===============================
          Plugins are contributed by third party and can cause compatibility problems.
          If you have any troubles set -Drebel.jboss_plugin=false to disable it.
          ------------------------------------------------------------------------------------------
          Description: Supports adding new methods to ejb interfaces and injecting new
          @EJB fields.
          =============================== [/JRebel JBoss Plugin] ==============================
          
          
          22:52:01,571 INFO  [EARDeployer] Init J2EE application: file:/C:/java/jboss-4.2.3.GA/server/default/deploy/jboss-seam-booking.ear/
          22:52:01,961 INFO  [STDOUT] JRebel: Directory 'C:\java\jboss-seam-2.2.0.GA\examples\booking\exploded-archives\jboss-seam-booking.jar' will be monitored for changes.
          22:52:01,974 INFO  [STDOUT] =============================== [JRebel Seam Plugin] ===============================
          22:52:01,974 INFO  [STDOUT] Plugins are contributed by third party and can cause compatibility problems.
          22:52:01,974 INFO  [STDOUT] If you have any troubles set -Drebel.seam_plugin=false to disable it.
          22:52:01,974 INFO  [STDOUT] ------------------------------------------------------------------------------------------
          22:52:01,974 INFO  [STDOUT] Description: reconfigures seam components.
          22:52:01,974 INFO  [STDOUT] =============================== [/JRebel Seam Plugin] ==============================
          
          22:52:06,300 INFO  [TomcatDeployer] deploy, ctxPath=/seam-booking, warUrl=.../deploy/jboss-seam-booking.ear/jboss-seam-booking.war/
          22:52:06,398 INFO  [STDOUT] =============================== [JRebel Facelets Plugin] ===============================
          22:52:06,399 INFO  [STDOUT] Plugins are contributed by third party and can cause compatibility problems.
          22:52:06,399 INFO  [STDOUT] If you have any troubles set -Drebel.facelets_plugin=false to disable it.
          22:52:06,399 INFO  [STDOUT] ------------------------------------------------------------------------------------------
          22:52:06,399 INFO  [STDOUT] Description: Reloads facelet tag libraries.
          22:52:06,399 INFO  [STDOUT] =============================== [/JRebel Facelets Plugin] ==============================
          22:52:10,065 INFO  [ServletContextListener] Welcome to Seam 2.2.0.GA
          



          I am going to try the Weld, JBoss 6.0.0.M1 stack next.


          Anybody please holler, I'd like to see what you all think!

          • 17. Re: Using JRebel 3 with JSF 2, Weld 1.0, EJB 3.0
            asookazian

            results with weld-translator below (failed).  I added a method to the TranslatorControllerBean to output to the log and that didn't happen (didn't hit debug brkpt either).  FYI: I'm saving the changes to the local interface and the impl class after the build has been deployed and test case started.  JRebel detects and hot reloads based on classpath config in rebel.xml:


            <classpath>
                      <dir name="C:/java/weld-1.0.1-CR2/examples/jsf/translator/ejb/target/classes">
                      </dir>
                 </classpath>



            23:26:46,933 INFO  [config] Initializing Mojarra 2.0.1 (FCS b02) for context '/weld-translator'
            23:27:25,940 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.weld.examples.translator.TranslatorControllerBean'.
            23:27:25,983 INFO  [STDOUT] JRebel-JBoss: Reconfiguring EJB 'TranslatorControllerBean' [org.jboss.weld.examples.translator.TranslatorControllerBean]
            23:27:26,002 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.weld.examples.translator.TranslatorController'.
            23:27:26,036 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.weld.examples.translator.SentenceParser'.
            23:27:26,042 INFO  [STDOUT] JRebel: Reloading class 'org.jboss.weld.examples.translator.TextTranslator'.
            23:27:26,052 INFO  [renderkit] jsf.non_displayed_message



            what does this mean exactly? jsf.non_displayed_message


            must be new for JSF 2?


            from server.log:

            2010-02-12 23:27:26,052 INFO  [javax.enterprise.resource.webcontainer.jsf.renderkit] (http-localhost%2F127.0.0.1-8080-1) jsf.non_displayed_message

            1 2 Previous Next