Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGwt and EJB 3.0

    I'm using SmartGwt with EJB 3.0 with application server Glassfish. I tried the LiveGrid example for lazy loading and rendering but I can't bu sure that, if I really succeeded on using lazy rendering and loading with EJBs. Is this a specific situation which is valid only we use MVC's all layers with SmartGwt? Because, we want to use SmartGwt only in View layer and we admired the lazy rendering and loading properties, we want to be sure that if we can implement these properties well.
    Thanks.

    #2
    I can't see why you can't use lazy loading with EJB 3. They are completely unrelated technologies. You would need to create an adapter between SmartGWT and your session beans (as you'd need with any other RIA) but as far as you can provide the required data in your beans, you only need to adapt it for SmartGWT to consume.

    You could use, for example, REST services to handle the talking with the view and delegate the behavior on your existing EJB backend on the server.

    What exact problem are you facing ?

    Best regards,
    Juan

    Comment


      #3
      Thank you for your answer. At the moment I have no problem. We set up EJBs and in service implementation, we use injection to reach EJB DAOs.
      I was wondering that -as I said- this way is also valid for lazy rendering and loading or not.(Maybe my question is too irrelevant)
      I mean that can we use different architectural structures? I don't know exact process of lazy rendering at background. If I know it a little more I'll be more sure about what am I doing now :)
      What kind of service implementation in GWT should I make? I retrieve all entries and bind them to ListGrid. ( Also, I made setAutoFetchData(true) ) Is this a true approach? ( I don't think so :) )
      I hope I'm clear now.

      Comment


        #4
        Yes, all server-side architectures that are capable of paging can be integrated with SmartGWT. If you have no existing GWT-RPC services we recommend either RestDataSource or the (upcoming) SmartGWT EE.

        Comment

        Working...
        X