11 Replies Latest reply on Feb 2, 2010 12:40 PM by mdesignz

    Weld GraniteDS Examples

    mdesignz

      Just curious if anyone has managed to successfully deploy the "graniteds_tide_jcdi" example from the GraniteDS distribution.  After working with Seam for quite a while, I'm about to start a new major project and I'm evaluating using Weld and Flex.  I realize the jcdi example is a bit off-topic for this list, but thought someone here may have already explored it.


      If there are other Flex / Weld examples out there other than the one I mentioned, I'd love to hear about it.

        • 1. Re: Weld GraniteDS Examples
          diegocoronel

          Thats something i really wanna see.. i think seam 3 will suppor it, the best choice for client side presentation is Flex... if anyone made some sample pls blog about it :)

          • 2. Re: Weld GraniteDS Examples
            alin.heyoulin.qq.com

            I deploy it to tomcat 6.0.18 and work fine

            • 3. Re: Weld GraniteDS Examples
              william.drai

              The example from the GraniteDS 2.1 RC1 distribution used to work with JBoss 5.2.x and GlassFish v3 build 70.


              A few things have changed since then in Weld, so you will have to get a nightly build or wait for RC2 (due very soon) to get something working with JBoss 6.0 M1 or GlassFish v3 final. I'll post an update on the GDS blog soon.


              Also note that if you want to use Flex 4, you will also have to get a nightly build, Flex 4 SDK beta 2 has a major bug which breaks GraniteDS (build 13472 works fine for me).


              All this stack is really on the edge, but once everything is set up, it's a pleasure to work with.


              He youlin, that would be nice if you can post your setup for Tomcat, either here or on the GraniteDS forums.

              • 4. Re: Weld GraniteDS Examples
                william.drai

                We have just released GraniteDS 2.1 RC2 with an updated CDI/Weld integration.


                It now supports GlassFish v3 final and JBoss 6.0 M1 and brings a few improvements. See here for more details.

                • 5. Re: Weld GraniteDS Examples
                  william.drai

                  Sorry clicked too fast on Save :( (would be nice to be able to edit posts)


                  We have just released GraniteDS 2.1 RC2 with an updated Flex and CDI/Weld integration.


                  It now supports GlassFish v3 final and JBoss 6.0 M1 and brings a few improvements. See here for more details.


                  The provided example for Flex/CDI integration demonstrates a collaborative address book and fully benefits from new JEE6 features, in particular in GFv3 :



                  • easy framework integration with Servlet 3

                  • scalable server push using Servlet 3 asynchronous support

                  • CDI

                  • Bean Validation



                  William



                  • 6. Re: Weld GraniteDS Examples
                    mdesignz

                    Thanks William.  I'll start looking at it this weekend.  Is there any intent to use Maven in your build process?   I'm just looking for good examples of using Maven / Flex within a multi-module project.   The Sonatype stuff looks interesting.

                    • 7. Re: Weld GraniteDS Examples
                      pmuir

                      William, are there any additional extensions you need adding to the Weld SPI? Are you having to depend on anything in Weld's core?

                      • 8. Re: Weld GraniteDS Examples
                        william.drai

                        In fact the only dependency we have on Weld is the conversation handling but it's completely isolated in an interceptor class.
                        I had to copy/paste a whole pile of code from the JSF integration to begin and cleanup a conversation context, so I guess that would be very useful to have this ability in the standard SPI. Indeed I believe I have seen the same copy/paste somewhere in the Wicket integration ;-).

                        • 9. Re: Weld GraniteDS Examples
                          pmuir

                          Yup, Nik is working on this - Nik, can you make sure to get William to review your changes to the Conversation Manangement APIs when it done?

                          • 10. Re: Weld GraniteDS Examples
                            mdesignz

                            Hello,
                            Unfortunately, according to the FlexMojos guys (and my own testing), the FlexMojos generator isn't yet compatible with GraniteDS 2.1.RC2, so I need to use 2.0.x

                            • 11. Re: Weld GraniteDS Examples
                              mdesignz

                              I posted too soon.  Based on a comment from William Drai, I was able to get FlexMojos (3.6-SNAPSHOT) workign with GraniteDS 2.1.RC2.  When I get a complete example working, I'll post the POMs.